mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
30 lines
875 B
Python
30 lines
875 B
Python
""" bookwyrm settings and configuration """
|
|
# pylint: disable=wildcard-import
|
|
# pylint: disable=unused-wildcard-import
|
|
from bookwyrm.settings import *
|
|
|
|
REDIS_BROKER_PASSWORD = requests.utils.quote(env("REDIS_BROKER_PASSWORD", None))
|
|
REDIS_BROKER_HOST = env("REDIS_BROKER_HOST", "redis_broker")
|
|
REDIS_BROKER_PORT = env("REDIS_BROKER_PORT", 6379)
|
|
|
|
CELERY_BROKER_URL = (
|
|
f"redis://:{REDIS_BROKER_PASSWORD}@{REDIS_BROKER_HOST}:{REDIS_BROKER_PORT}/0"
|
|
)
|
|
CELERY_RESULT_BACKEND = (
|
|
f"redis://:{REDIS_BROKER_PASSWORD}@{REDIS_BROKER_HOST}:{REDIS_BROKER_PORT}/0"
|
|
)
|
|
|
|
CELERY_DEFAULT_QUEUE = "low_priority"
|
|
|
|
CELERY_ACCEPT_CONTENT = ["json"]
|
|
CELERY_TASK_SERIALIZER = "json"
|
|
CELERY_RESULT_SERIALIZER = "json"
|
|
FLOWER_PORT = env("FLOWER_PORT")
|
|
|
|
INSTALLED_APPS = INSTALLED_APPS + [
|
|
"celerywyrm",
|
|
]
|
|
|
|
ROOT_URLCONF = "celerywyrm.urls"
|
|
|
|
WSGI_APPLICATION = "celerywyrm.wsgi.application"
|