mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix examples/nginx.conf
This commit is contained in:
parent
fd3180445f
commit
69ab24b589
@ -1,5 +1,5 @@
|
|||||||
# This is example contains the bare minimum to get nginx going with
|
# This is example contains the bare minimum to get nginx going with
|
||||||
# Gunicornservers.
|
# Gunicornservers.
|
||||||
|
|
||||||
worker_processes 1;
|
worker_processes 1;
|
||||||
|
|
||||||
@ -111,10 +111,8 @@ http {
|
|||||||
|
|
||||||
# Try to serve static files from nginx, no point in making an
|
# Try to serve static files from nginx, no point in making an
|
||||||
# *application* server like Unicorn/Rainbows! serve static files.
|
# *application* server like Unicorn/Rainbows! serve static files.
|
||||||
if (!-f $request_filename) {
|
proxy_pass http://app_server;
|
||||||
proxy_pass http://app_server;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Error pages
|
# Error pages
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user