mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Initial commit for SyncLounge subfolder confs
This commit is contained in:
parent
af79382b80
commit
0d9b0c19bd
2 changed files with 58 additions and 0 deletions
29
synclounge-server.subfolder.conf.sample
Normal file
29
synclounge-server.subfolder.conf.sample
Normal file
|
@ -0,0 +1,29 @@
|
|||
#******** Due to some bugs in SyncLounge, this config may conflict with others. *********
|
||||
|
||||
# SyncLounge defaults the server to `slserver` already
|
||||
location /slserver {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app synclounge;
|
||||
set $upstream_port 8089;
|
||||
set $upstream_proto http;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
# Due to a bug in SyncLounge, some websockets calls don't respect the base url (server root) setting
|
||||
# TODO: Update when fixed
|
||||
location /socket.io {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app synclounge;
|
||||
set $upstream_port 8089;
|
||||
set $upstream_proto http;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port/slserver/socket.io/;
|
||||
}
|
29
synclounge.subfolder.conf.sample
Normal file
29
synclounge.subfolder.conf.sample
Normal file
|
@ -0,0 +1,29 @@
|
|||
#******** Due to some bugs in SyncLounge, this config may conflict with others. *********
|
||||
|
||||
# Set `webroot` to `slweb` and restart the container
|
||||
location /slweb {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app synclounge;
|
||||
set $upstream_port 8088;
|
||||
set $upstream_proto http;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
# Due to a bug in SyncLounge, some requests like /config don't respect the web's base url setting (webroot)
|
||||
# TODO: Update when fixed
|
||||
location /config {
|
||||
return 301 $scheme://$host/slweb$request_uri;
|
||||
}
|
||||
|
||||
# Invite links need to be rewritten to use the web's base url setting (webroot)
|
||||
# The docker container currently sets `autoJoinUrl` ENV variable on build to `http://${DOMAIN}`
|
||||
# overriding what the user has set.
|
||||
# TODO: Update when fixed
|
||||
location /invite/ {
|
||||
return 301 $scheme://$host/slweb$request_uri;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue