wildcard location for frontend

This commit is contained in:
Ulf Gebhardt 2022-01-05 11:42:52 +01:00
parent d3d0dc57eb
commit f8e4a48700
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -14,7 +14,7 @@ server {
#gzip_static on;
# Frontend
location / {
location ~ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@ -26,6 +26,18 @@ server {
proxy_redirect off;
}
#location /sockjs-node {
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Host $host;
#
# proxy_pass http://frontend:3000;
# proxy_redirect off;
#}
# Backend
location /graphql {
proxy_http_version 1.1;
@ -118,17 +130,5 @@ server {
# try_files $uri $uri/ /index.php?$args;
#}
#location /sockjs-node {
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header X-Forwarded-For $remote_addr;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Host $host;
#
# proxy_pass http://frontend:3000;
# proxy_redirect off;
#}
#access_log /var/log/nginx/access.log main;
}