Move the /static handler into the base and have nginx serve the Docker ping endpoint
This commit is contained in:
parent
c682899861
commit
a1470460a7
3 changed files with 10 additions and 10 deletions
|
@ -24,4 +24,14 @@ location / {
|
|||
proxy_pass http://app_server;
|
||||
proxy_read_timeout 2000;
|
||||
proxy_temp_path /var/log/nginx/proxy_temp 1 2;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
# checks for static file, if not found proxy to app
|
||||
alias /static/;
|
||||
}
|
||||
|
||||
location /v1/_ping {
|
||||
add_header Content-Type text/plain;
|
||||
return 200 'okay';
|
||||
}
|
Reference in a new issue