From a95f4f355efb3f6008c6c24a6fb8c10cf82ec450 Mon Sep 17 00:00:00 2001 From: MagicalCodeMonkey Date: Sun, 22 Mar 2020 16:06:25 -0400 Subject: [PATCH] Update comments --- synclounge.subfolder.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synclounge.subfolder.conf.sample b/synclounge.subfolder.conf.sample index 8afe577..61ddbbd 100644 --- a/synclounge.subfolder.conf.sample +++ b/synclounge.subfolder.conf.sample @@ -6,7 +6,6 @@ # Client ### -# Due to a bug in SyncLounge, some requests like /config don't respect the base url (web root) setting location /slweb { # enable the next two lines for http auth #auth_basic "Restricted"; @@ -28,7 +27,9 @@ location /slweb { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } if ($http_referer ~* /slweb) { + # Due to a bug in SyncLounge, some requests like /config don't respect the base url (web root) setting rewrite ^/config /slweb/config redirect; + # I think this is a bug as well rewrite ^/socket.io/(.*) /slserver/socket.io/$1? redirect; } @@ -50,5 +51,6 @@ location /slserver { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } if ($http_referer ~* /slserver) { + # Due to a bug in SyncLounge, some requests like socket.io don't respect the base url (server root) setting rewrite ^/socket.io/(.*) /slserver/socket.io/$1? redirect; }