|
|
|
|
@ -21,6 +21,10 @@ http { |
|
|
|
|
server unix:/tmp/gunicorn.sock fail_timeout=0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
upstream flower { |
|
|
|
|
server unix:/tmp/daphne.sock fail_timeout=0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
server { |
|
|
|
|
listen 80; |
|
|
|
|
server_name _; |
|
|
|
|
@ -39,6 +43,17 @@ http { |
|
|
|
|
expires 30d; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location /flower { |
|
|
|
|
proxy_pass http://flower; |
|
|
|
|
proxy_http_version 1.1; |
|
|
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
|
proxy_set_header Connection "upgrade"; |
|
|
|
|
proxy_set_header Host $http_host; |
|
|
|
|
proxy_connect_timeout 86400; |
|
|
|
|
proxy_read_timeout 86400; |
|
|
|
|
proxy_send_timeout 86400; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
location / { |
|
|
|
|
proxy_set_header Host $http_host; |
|
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
|
|