lifecycle: don't set user/group in gunicorn

closes #4098 closes #3236

the user and group are inherited from the parent process so this isnt required

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-02 12:27:14 +02:00
parent a2dc594a44
commit 6ca1654129
1 changed files with 0 additions and 8 deletions

View File

@ -1,6 +1,5 @@
"""Gunicorn config"""
import os
import pwd
from hashlib import sha512
from multiprocessing import cpu_count
from os import makedirs
@ -23,13 +22,6 @@ if TYPE_CHECKING:
bind = "127.0.0.1:8000"
try:
pwd.getpwnam("authentik")
user = "authentik"
group = "authentik"
except KeyError:
pass
_tmp = Path(gettempdir())
worker_class = "lifecycle.worker.DjangoUvicornWorker"
worker_tmp_dir = str(_tmp.joinpath("authentik_worker_tmp"))