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; }