bookwyrm-mastodon/celerywyrm/settings.py

27 lines
761 B
Python
Raw Normal View History

""" bookwyrm settings and configuration """
2021-09-07 16:51:59 -04:00
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import
from bookwyrm.settings import *
2021-09-07 16:51:59 -04:00
CELERY_BROKER_URL = "redis://:{}@redis_broker:{}/0".format(
requests.utils.quote(env("REDIS_BROKER_PASSWORD", "")), env("REDIS_BROKER_PORT")
)
CELERY_RESULT_BACKEND = "redis://:{}@redis_broker:{}/0".format(
requests.utils.quote(env("REDIS_BROKER_PASSWORD", "")), env("REDIS_BROKER_PORT")
)
2021-09-07 19:33:18 -04:00
CELERY_DEFAULT_QUEUE="low_priority"
2021-09-07 19:06:54 -04:00
2021-03-08 11:49:10 -05:00
CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
2021-09-07 16:51:59 -04:00
CELERY_RESULT_SERIALIZER = "json"
FLOWER_PORT = env("FLOWER_PORT")
INSTALLED_APPS = INSTALLED_APPS + [
2021-03-08 11:49:10 -05:00
"celerywyrm",
]
2021-03-08 11:49:10 -05:00
ROOT_URLCONF = "celerywyrm.urls"
2021-03-08 11:49:10 -05:00
WSGI_APPLICATION = "celerywyrm.wsgi.application"