Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haproxy configuration #347

Open
mwinkens opened this issue Jan 27, 2025 · 0 comments
Open

haproxy configuration #347

mwinkens opened this issue Jan 27, 2025 · 0 comments

Comments

@mwinkens
Copy link

mwinkens commented Jan 27, 2025

In the README you provide an apache, nginx and cadet configuration, here is yet another one:

frontend <your-domain>
	bind ...
	...
	acl is_whiteboard path_beg -i /whiteboard
	use_backend whiteboard if is_whiteboard
        ...

backend whiteboard
	mode http
	option forwardfor
	option http-server-close
	http-request replace-path /whiteboard(/)?(.*) /\2
	timeout tunnel 1h
	http-request set-header Connection "Upgrade"
	http-request set-header Upgrade %[req.hdr(Upgrade)]
	server whiteboard 192.168.0.1:3002 check   # your internal IP address and port, here default whiteboard port

Uses <your_domain>/whiteboard as path (so you configure with /whiteboard), removes it and forwards connection to whiteboard server. Take a look at sticky sessions if you want to add more whiteboard servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant