From 742a55a6a7a2f829a7a798f88ff2d01ea6bf4def Mon Sep 17 00:00:00 2001 From: Alexis Durand Date: Sat, 10 Dec 2016 22:23:21 +0000 Subject: [PATCH] Added route for flower --- miilibrary.nginx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/miilibrary.nginx b/miilibrary.nginx index 2467e95..2564e8d 100644 --- a/miilibrary.nginx +++ b/miilibrary.nginx @@ -17,6 +17,18 @@ server { client_max_body_size 0; + location /celery { + client_max_body_size 0; + proxy_pass http://localhost:5555/; + proxy_redirect off; + proxy_read_timeout 5m; + + # make sure these HTTP headers are set properly + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + # Attempt to serve files first, then pass the request up to Gunicorn try_files $uri @gunicorn;