54ba3e9616
* add meta model to apply blueprint within blueprint for dependencies Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix tests Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * use custom registry Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix again Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * move ManagedAppConfig to apps.py Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * rename manager to registry Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ci: use full tag in comment Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
21 lines
622 B
Python
21 lines
622 B
Python
"""authentik admin app config"""
|
|
from prometheus_client import Gauge, Info
|
|
|
|
from authentik.blueprints.apps import ManagedAppConfig
|
|
|
|
PROM_INFO = Info("authentik_version", "Currently running authentik version")
|
|
GAUGE_WORKERS = Gauge("authentik_admin_workers", "Currently connected workers")
|
|
|
|
|
|
class AuthentikAdminConfig(ManagedAppConfig):
|
|
"""authentik admin app config"""
|
|
|
|
name = "authentik.admin"
|
|
label = "authentik_admin"
|
|
verbose_name = "authentik Admin"
|
|
default = True
|
|
|
|
def reconcile_load_admin_signals(self):
|
|
"""Load admin signals"""
|
|
self.import_module("authentik.admin.signals")
|