Merge pull request #805 from makeplane/chore/celery_production_settings
chore: production settings for celery
This commit is contained in:
commit
1cd1505c7d
1 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
"""Production settings and globals."""
|
"""Production settings and globals."""
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
import ssl
|
||||||
|
import certifi
|
||||||
|
|
||||||
import dj_database_url
|
import dj_database_url
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
@ -237,5 +239,8 @@ SLACK_BOT_TOKEN = os.environ.get("SLACK_BOT_TOKEN", False)
|
||||||
|
|
||||||
LOGGER_BASE_URL = os.environ.get("LOGGER_BASE_URL", False)
|
LOGGER_BASE_URL = os.environ.get("LOGGER_BASE_URL", False)
|
||||||
|
|
||||||
CELERY_RESULT_BACKEND = os.environ.get("REDIS_URL")
|
redis_url = os.environ.get("REDIS_URL")
|
||||||
CELERY_BROKER_URL = os.environ.get("REDIS_URL")
|
broker_url = f"{redis_url}?ssl_cert_reqs={ssl.CERT_NONE.name}&ssl_ca_certs={certifi.where()}"
|
||||||
|
|
||||||
|
CELERY_RESULT_BACKEND = broker_url
|
||||||
|
CELERY_BROKER_URL = broker_url
|
||||||
Loading…
Add table
Add a link
Reference in a new issue