-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Example Proxy Configurations #3
Comments
I'm an NGiNX guy so here's my config. In NGiNX we have to specify websockets so I'm assuming you might have to do the same in apache
|
Got it after some configuration testing. <VirtualHost *:80>
ServerName sub.domain.com
ProxyPass / http://localhost:3001/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:3001/$1" [P,L]
</VirtualHost> I think adding these to documentation could be a good call @louislam |
I will write an edit for examples of reverse proxys. |
I've added the example configurations to a new wiki page at https://github.com/louislam/uptime-kuma/wiki/Webserver-Reverse-Proxy. Closing this. |
Given that not many people are exposing Docker containers directly to the internet, having an example of a nginx or apache config that allows proxying could be beneficial. I tried looking at it myself, but all my attempts with apache are coming up moot. Hopefully someone smarter than me can figure this out.
The text was updated successfully, but these errors were encountered: