mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Added Ingress autologin
Cleanup of previous tests remains
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
upstream backend {
|
||||
server 127.0.0.1:8080;
|
||||
server 127.0.0.1:8083;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,10 @@ server {
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
|
||||
allow 172.30.32.2;
|
||||
deny all;
|
||||
proxy_set_header X-WebAuth-User %%ingress_user%%;
|
||||
|
||||
# Base from https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy#nginx
|
||||
proxy_bind $server_addr;
|
||||
proxy_pass http://127.0.0.1:8083;
|
||||
@@ -14,7 +17,7 @@ server {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Script-Name %%UIPATH%%; # IMPORTANT: path has NO trailing slash
|
||||
|
||||
|
||||
# Optimisation
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 30;
|
||||
|
||||
Reference in New Issue
Block a user