add_docker
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
upstream gunicorn {
|
||||
#server 172.25.0.22:8000 fail_timeout=0;
|
||||
server web2py-rocket:8000 fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
#listen 172.25.0.23:80 default_server;
|
||||
listen web2py-nginx:80 default_server;
|
||||
|
||||
location / {
|
||||
try_files $uri @proxy_to_gunicorn;
|
||||
}
|
||||
|
||||
location @proxy_to_gunicorn {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://gunicorn;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user