Move the /static handler into the base and have nginx serve the Docker ping endpoint

This commit is contained in:
Joseph Schorr 2014-10-02 16:04:23 -04:00
parent c682899861
commit a1470460a7
3 changed files with 10 additions and 10 deletions

View file

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