mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
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:
@@ -50,6 +50,8 @@ logconfig_dict = get_logger_config()
|
|||||||
workers = CONFIG.get_int("web.workers", 2)
|
workers = CONFIG.get_int("web.workers", 2)
|
||||||
threads = CONFIG.get_int("web.threads", 4)
|
threads = CONFIG.get_int("web.threads", 4)
|
||||||
|
|
||||||
|
control_socket_disable = True
|
||||||
|
|
||||||
|
|
||||||
def post_fork(server: "Arbiter", worker: DjangoUvicornWorker): # noqa: UP037
|
def post_fork(server: "Arbiter", worker: DjangoUvicornWorker): # noqa: UP037
|
||||||
"""Tell prometheus to use worker number instead of process ID for multiprocess"""
|
"""Tell prometheus to use worker number instead of process ID for multiprocess"""
|
||||||
|
|||||||
Reference in New Issue
Block a user