Activation :
Rajouter la configuration Celery/Redis dans le fichier settings_local.py
...
Bloc de code | ||
---|---|---|
| ||
# Configuration ActivityPub USE_ACTIVITYPUB = True ACTIVITYPUB_CELERY_BROKER_URL = "redis://127.0.0.1:6379/7" # on utilise la db 7 comme espace file d'attente sur redis with open("pod/activitypub/ap.key") as fd: ACTIVITYPUB_PRIVATE_KEY = fd.read() with open("pod/activitypub/ap.pub") as fd: ACTIVITYPUB_PUBLIC_KEY = fd.read() |
Activer Celery
Mettre le contenu de https://raw.githubusercontent.com/celery/celery/main/extra/generic-init.d/celeryd dans /etc/init.d/celeryd
...