lifecycle: disable gunicorn control socket (#21408)

* lifecycle: disable gunicorn control socket

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* format

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2026-04-06 12:34:37 +01:00
committed by GitHub
parent ff50357afc
commit 1e0f18f63e

View File

@@ -50,6 +50,8 @@ logconfig_dict = get_logger_config()
workers = CONFIG.get_int("web.workers", 2)
threads = CONFIG.get_int("web.threads", 4)
control_socket_disable = True
def post_fork(server: "Arbiter", worker: DjangoUvicornWorker): # noqa: UP037
"""Tell prometheus to use worker number instead of process ID for multiprocess"""