+ Flower systemd service

This commit is contained in:
Phil Zhitnikov 2024-04-28 04:26:39 +04:00
parent db89c9997f
commit 3c276d6947
2 changed files with 21 additions and 1 deletions

20
_deploy/flower.service Normal file
View File

@ -0,0 +1,20 @@
[Unit]
Description=Flower - Celery monitoring tool
After=network.target
Requires=celery-stage.service
[Service]
Type=simple
User=poizon
Group=poizon
EnvironmentFile=/etc/default/celery-stage
EnvironmentFile=/var/www/poizonstore-stage/.env
WorkingDirectory=/var/www/poizonstore-stage
RuntimeDirectory=celery
ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} --workdir=${APP_HOME} flower --port=5556 \
--url_prefix=/flower --basic-auth=admin:meowmeow'
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -47,6 +47,6 @@ server {
} }
location /flower/ { location /flower/ {
proxy_pass http://localhost:5555/flower/; proxy_pass http://localhost:5556/flower/;
} }
} }