Open jason-weiser opened 2 years ago
You need websocket config, something like :
<IfModule mod_proxy_wstunnel.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(.*) [NC]
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://mondomaine.example.com:6001/$1 [P,L]
</IfModule>
I'm having the same issue with the app not refreshing behind an Nginx reverse proxy. I've set up a websocket config on nginx as follows:
server {
server_name mu_domain;
include certbot-challenge.conf;
include ssl.conf;
listen 443 ssl http2;
listen [::]:443 ssl http2;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass http://utgars:8000;
}
}
The utgars app is running in a Docker container.
Is there anything I'm missing with the websocket configurations?
First off, just want to say that this is such an awesome app. Thank you so much for making it.
I know this isn't an issue, just plain user error or ignorance on my part, but no amount of searching has helped me find the right way to set this up behind an Apache2 reverse proxy. I'm extremely grateful for any help you can provide or even just pointing me in the right direction.
Basically, after setting up the app according to the README, here are two different Apache2 configs that I've tried:
This one won't move past the login page for some reason? It seems to think I'm not using https on the form submission despite the page appearing to have a valid certificate in the address bar.
This one works almost perfectly, but won't update the game page with new periods/events/scenes unless the page is refreshed.
Once again, thanks for any help.
EDIT: for some reason it edited out the closing tags for the Apache virtual host files but they do exist