allow configuration of auth_proxy_pass through
environment variable
This commit is contained in:
23
default.conf.template
Normal file
23
default.conf.template
Normal file
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location /eo-services {
|
||||
mirror /mirror;
|
||||
root /app;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /eo-services/index.html;
|
||||
add_header Cache-Control 'no-store';
|
||||
}
|
||||
|
||||
location /mirror {
|
||||
internal;
|
||||
proxy_pass ${AUTH_PROXY_PASS};
|
||||
proxy_set_header X-Original-URI $request_uri;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user