Add Nginx location block for "Kanzlei Demo 2" with authentication and proxy settings
This commit is contained in:
12
nginx.conf
12
nginx.conf
@@ -83,6 +83,18 @@ http {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /lawfirm/demo2/ {
|
||||||
|
access_by_lua_file /usr/local/openresty/nginx/conf/auth.lua;
|
||||||
|
|
||||||
|
rewrite ^/lawfirm/demo2(/.*)$ $1 break;
|
||||||
|
proxy_pass http://ld2:3000;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
# Add more locations as needed for other demos
|
# Add more locations as needed for other demos
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user