mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-07-08 17:42:32 +02:00
29 lines
998 B
Plaintext
29 lines
998 B
Plaintext
#******** 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;
|
|
} |