adding: celery

This commit is contained in:
2024-08-13 00:45:14 +03:00
parent d2da446009
commit 2d88f3c0c5
16 changed files with 161 additions and 9 deletions

View File

@@ -27,11 +27,14 @@ http {
server api:8000;
}
upstream flower {
server flower:5555;
}
server {
listen 8000;
charset utf-8;
server_name _;
location /static/ {
@@ -48,6 +51,15 @@ http {
proxy_pass http://app;
}
location /flower/ {
proxy_redirect off;
proxy_set_header Host app;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_pass http://flower;
}
location / {
proxy_redirect off;
proxy_set_header Host app;