This commit is contained in:
Alexandre
2025-07-28 10:53:01 +02:00
committed by GitHub
parent 7a85598bdf
commit d5cf36981d

View File

@@ -3,17 +3,24 @@ server {
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
proxy_buffering off;
location / {
# Proxy pass
proxy_pass http://localhost:8080;
proxy_pass http://localhost:8080/;
rewrite ^%%ingress_entry%%/(.*)$ /$1 break;
# Disable buffering
proxy_buffering off;
proxy_request_buffering off;
# Next three lines allow websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $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;
set $today "";
if ($time_iso8601 ~ "^(\d{4}-\d{2}-\d{2})") {