docs: remove misleading comment

This commit is contained in:
ibizaman 2025-11-18 23:23:04 +01:00
parent 116dc41d6f
commit 2672101545
3 changed files with 22 additions and 21 deletions

View file

@ -83,9 +83,8 @@ in
enable = lib.mkEnableOption "SSO integration."; enable = lib.mkEnableOption "SSO integration.";
authEndpoint = lib.mkOption { authEndpoint = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.str;
default = null; description = "Endpoint to the SSO provider.";
description = "Endpoint to the SSO provider. Leave null to not have SSO configured.";
example = "https://authelia.example.com"; example = "https://authelia.example.com";
}; };

View file

@ -101,9 +101,8 @@ in
enable = lib.mkEnableOption "SSO integration."; enable = lib.mkEnableOption "SSO integration.";
authEndpoint = lib.mkOption { authEndpoint = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.str;
default = null; description = "Endpoint to the SSO provider.";
description = "Endpoint to the SSO provider. Leave null to not have SSO configured.";
example = "https://authelia.example.com"; example = "https://authelia.example.com";
}; };

View file

@ -100,9 +100,8 @@ in
enable = lib.mkEnableOption "SSO integration."; enable = lib.mkEnableOption "SSO integration.";
authEndpoint = lib.mkOption { authEndpoint = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.str;
default = null; description = "Endpoint to the SSO provider.";
description = "Endpoint to the SSO provider. Leave null to not have SSO configured.";
example = "https://authelia.example.com"; example = "https://authelia.example.com";
}; };
@ -174,19 +173,23 @@ in
}; };
shb.nginx.vhosts = [ shb.nginx.vhosts = [
{ (
inherit (cfg) subdomain domain ssl; {
inherit (cfg.sso) authEndpoint; inherit (cfg) subdomain domain ssl;
upstream = "http://127.0.0.1:${toString cfg.port}"; upstream = "http://127.0.0.1:${toString cfg.port}";
autheliaRules = lib.optionals (cfg.sso.enable) [ autheliaRules = lib.optionals (cfg.sso.enable) [
{ {
domain = "${cfg.subdomain}.${cfg.domain}"; domain = "${cfg.subdomain}.${cfg.domain}";
policy = cfg.sso.authorization_policy; policy = cfg.sso.authorization_policy;
subject = [ "group:${cfg.ldap.userGroup}" ]; subject = [ "group:${cfg.ldap.userGroup}" ];
} }
]; ];
} }
// lib.optionalAttrs cfg.sso.enable {
inherit (cfg.sso) authEndpoint;
}
)
]; ];
services.prometheus.scrapeConfigs = [ services.prometheus.scrapeConfigs = [