* Moved Flower keys to env-file

This commit is contained in:
Phil Zhitnikov 2024-04-28 04:36:26 +04:00
parent 57313e3018
commit 12ca631d15
2 changed files with 2 additions and 4 deletions

View File

@ -16,5 +16,4 @@ POIZON_TOKEN=""
CURRENCY_GETGEOIP_API_KEY="" CURRENCY_GETGEOIP_API_KEY=""
# Celery & Flower # Celery & Flower
FLOWER_LOGIN="" FLOWER_BASIC_AUTH="login:pwd"
FLOWER_PASSWORD=""

View File

@ -12,8 +12,7 @@ EnvironmentFile=/var/www/poizonstore-stage/.env
WorkingDirectory=/var/www/poizonstore-stage WorkingDirectory=/var/www/poizonstore-stage
RuntimeDirectory=celery RuntimeDirectory=celery
ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} --workdir=${APP_HOME} flower --port=5556 \ ExecStart=/bin/sh -c '${CELERY_BIN} -A ${CELERY_APP} --workdir=${APP_HOME} flower --port=5556 --url_prefix=/flower'
--url_prefix=/flower --basic-auth=${FLOWER_LOGIN}:${FLOWER_PASSWORD}'
Restart=on-failure Restart=on-failure
[Install] [Install]