Added Ingress autologin

Cleanup of previous tests remains
This commit is contained in:
Marco Lusini
2022-06-09 18:51:03 +02:00
parent 1b9f053e82
commit 4ffc0d5689
6 changed files with 52 additions and 39 deletions

View File

@@ -1,3 +1,3 @@
upstream backend {
server 127.0.0.1:8080;
server 127.0.0.1:8083;
}

View File

@@ -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;