mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Revert
This commit is contained in:
@@ -6,35 +6,20 @@ server {
|
|||||||
|
|
||||||
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 / {
|
||||||
location = / {
|
|
||||||
return 302 /%%path%%/ui/?ui_credentials=%%ui_credentials%%;
|
|
||||||
}
|
|
||||||
|
|
||||||
# (Optional but helpful) /joal -> /joal/
|
|
||||||
location = /%%path%% {
|
|
||||||
return 302 /%%path%%/;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Proxy everything under the JOAL path prefix to the backend, preserving paths
|
|
||||||
location /%%path%%/ {
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
|
||||||
proxy_connect_timeout 30m;
|
proxy_connect_timeout 30m;
|
||||||
proxy_send_timeout 30m;
|
proxy_send_timeout 30m;
|
||||||
proxy_read_timeout 30m;
|
proxy_read_timeout 30m;
|
||||||
|
proxy_pass http://backend/%%path%%/ui/;
|
||||||
proxy_pass http://backend/%%path%%/;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Special virtual "port tunnel" used by JOAL UI (it encodes :8123 into the path)
|
|
||||||
location /:8123/ {
|
location /:8123/ {
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
|
||||||
proxy_connect_timeout 30m;
|
proxy_connect_timeout 30m;
|
||||||
proxy_send_timeout 30m;
|
proxy_send_timeout 30m;
|
||||||
proxy_read_timeout 30m;
|
proxy_read_timeout 30m;
|
||||||
|
|
||||||
proxy_pass http://backend/;
|
proxy_pass http://backend/;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user