components: drop celery, package manage.py instead

This commit is contained in:
WilliButz 2024-02-21 21:59:49 +01:00
parent 8edfcf318a
commit d85dacb6c2
No known key found for this signature in database
GPG key ID: AB05DF703EB9DC70
5 changed files with 21 additions and 18 deletions

View file

@ -165,7 +165,7 @@ in
DynamicUser = true;
User = "authentik";
# TODO maybe make this configurable
ExecStart = "${cfg.authentikComponents.celery}/bin/celery -A authentik.root.celery worker -Ofair --max-tasks-per-child=1 --autoscale 3,1 -E -B -s /tmp/celerybeat-schedule -Q authentik,authentik_scheduled,authentik_events";
ExecStart = "${cfg.authentikComponents.manage}/bin/manage.py worker";
EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
LoadCredential = mkIf (cfg.nginx.enable && cfg.nginx.enableACME) [
"${cfg.nginx.host}.pem:${config.security.acme.certs.${cfg.nginx.host}.directory}/fullchain.pem"