diff --git a/secrets/netbox-environment.age b/secrets/netbox-environment.age index c5f5752..1ee2e33 100644 Binary files a/secrets/netbox-environment.age and b/secrets/netbox-environment.age differ diff --git a/services/netbox/default.nix b/services/netbox/default.nix index 423bd0e..2ba6c67 100644 --- a/services/netbox/default.nix +++ b/services/netbox/default.nix @@ -29,7 +29,7 @@ in listenAddress = "127.0.0.1"; settings = { ALLOWED_HOSTS = [ cfg.domain ]; - # REMOTE_AUTH_BACKEND = "social_core.backends.open_id_connect.OpenIdConnectAuth"; + REMOTE_AUTH_BACKEND = "social_core.backends.open_id_connect.OpenIdConnectAuth"; }; extraConfig = lib.mkForce '' @@ -37,9 +37,9 @@ in SECRET_KEY = env["SECRET_KEY"] - # SOCIAL_AUTH_OIDC_OIDC_ENDPOINT = env["NETBOX_OIDC_URL"] - # SOCIAL_AUTH_OIDC_KEY = env["NETBOX_OIDC_KEY"] - # SOCIAL_AUTH_OIDC_SECRET = env["NETBOX_OIDC_SECRET"] + SOCIAL_AUTH_OIDC_OIDC_ENDPOINT = env["NETBOX_OIDC_URL"] + SOCIAL_AUTH_OIDC_KEY = env["NETBOX_OIDC_KEY"] + SOCIAL_AUTH_OIDC_SECRET = env["NETBOX_OIDC_SECRET"] ''; };