Update ingress.conf

This commit is contained in:
Alexandre
2026-01-06 10:09:50 +01:00
committed by GitHub
parent 6d76605283
commit 54fbd3eb84

View File

@@ -1,26 +1,40 @@
server { server {
listen %%interface%%:%%port%% default_server; listen %%interface%%:%%port%% default_server;
include /etc/nginx/includes/server_params.conf; include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf; include /etc/nginx/includes/proxy_params.conf;
client_max_body_size 0;
location / { client_max_body_size 0;
add_header Access-Control-Allow-Origin *;
proxy_connect_timeout 30m; # When user opens the ingress root, redirect to the JOAL UI with credentials prefilled
proxy_send_timeout 30m; location = / {
proxy_read_timeout 30m; return 302 /%%path%%/ui/?ui_credentials=%%ui_credentials%%;
proxy_pass http://backend/%%path%%/ui/;
} }
location /:8123/ { # (Optional but helpful) /joal -> /joal/
add_header Access-Control-Allow-Origin *; location = /%%path%% {
proxy_connect_timeout 30m; return 302 /%%path%%/;
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/;
}
} }