|
|
|
@ -21,6 +21,10 @@ http { |
|
|
|
server unix:/tmp/gunicorn.sock fail_timeout=0; |
|
|
|
server unix:/tmp/gunicorn.sock fail_timeout=0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
upstream flower { |
|
|
|
|
|
|
|
server unix:/tmp/flower.sock fail_timeout=0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
server { |
|
|
|
server { |
|
|
|
listen 80; |
|
|
|
listen 80; |
|
|
|
server_name _; |
|
|
|
server_name _; |
|
|
|
@ -39,6 +43,18 @@ http { |
|
|
|
expires 30d; |
|
|
|
expires 30d; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /flower/ { |
|
|
|
|
|
|
|
proxy_pass http://flower; |
|
|
|
|
|
|
|
proxy_redirect off; |
|
|
|
|
|
|
|
proxy_set_header Host $host; |
|
|
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
|
|
|
|
proxy_set_header X-Forwarded-Protocol $scheme; |
|
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
|
|
|
|
proxy_set_header Connection "upgrade"; |
|
|
|
|
|
|
|
proxy_http_version 1.1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
location / { |
|
|
|
location / { |
|
|
|
proxy_set_header Host $http_host; |
|
|
|
proxy_set_header Host $http_host; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
|