lms.lan.conf
All checks were successful
Portainer stack nginx / deploy (push) Successful in 1s

This commit is contained in:
2024-08-29 00:16:36 +01:00
parent b5b191982f
commit 1b3ba1cc19
2 changed files with 19 additions and 17 deletions

View File

@@ -30,23 +30,6 @@ server {
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
} }
location ^~ /lms/ {
proxy_pass http://lms-lms-1:9000/;
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 X-Forwarded-Protocol $scheme;
proxy_set_header X-Url-Scheme $scheme;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
} }

View File

@@ -0,0 +1,19 @@
server {
listen 80;
proxy_buffering off;
server_name lms.lan;
proxy_pass http://lms-lms-1:9000/;
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 X-Forwarded-Protocol $scheme;
proxy_set_header X-Url-Scheme $scheme;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}