From b47e0d47d6b4b9e729ea7b538d7cd87e95387829 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 6 Jan 2026 10:54:00 +0100 Subject: [PATCH] Revert --- joal/rootfs/etc/nginx/servers/ingress.conf | 49 ++++++++-------------- 1 file changed, 17 insertions(+), 32 deletions(-) diff --git a/joal/rootfs/etc/nginx/servers/ingress.conf b/joal/rootfs/etc/nginx/servers/ingress.conf index 6648edce2..85582eb81 100644 --- a/joal/rootfs/etc/nginx/servers/ingress.conf +++ b/joal/rootfs/etc/nginx/servers/ingress.conf @@ -1,40 +1,25 @@ server { - listen %%interface%%:%%port%% default_server; + listen %%interface%%:%%port%% default_server; - include /etc/nginx/includes/server_params.conf; - include /etc/nginx/includes/proxy_params.conf; + include /etc/nginx/includes/server_params.conf; + include /etc/nginx/includes/proxy_params.conf; + + client_max_body_size 0; - client_max_body_size 0; - - # When user opens the ingress root, redirect to the JOAL UI with credentials prefilled - location = / { - return 302 /%%path%%/ui/?ui_credentials=%%ui_credentials%%; + location / { + add_header Access-Control-Allow-Origin *; + proxy_connect_timeout 30m; + proxy_send_timeout 30m; + proxy_read_timeout 30m; + proxy_pass http://backend/%%path%%/ui/; } - # (Optional but helpful) /joal -> /joal/ - location = /%%path%% { - return 302 /%%path%%/; + location /:8123/ { + add_header Access-Control-Allow-Origin *; + proxy_connect_timeout 30m; + proxy_send_timeout 30m; + proxy_read_timeout 30m; + proxy_pass http://backend/; } - # Proxy everything under the JOAL path prefix to the backend, preserving paths - location /%%path%%/ { - add_header Access-Control-Allow-Origin *; - - proxy_connect_timeout 30m; - proxy_send_timeout 30m; - proxy_read_timeout 30m; - - proxy_pass http://backend/%%path%%/; - } - - # Special virtual "port tunnel" used by JOAL UI (it encodes :8123 into the path) - location /:8123/ { - add_header Access-Control-Allow-Origin *; - - proxy_connect_timeout 30m; - proxy_send_timeout 30m; - proxy_read_timeout 30m; - - proxy_pass http://backend/; - } }