diff options
Diffstat (limited to 'modules/services')
-rw-r--r-- | modules/services/metrics.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/services/metrics.nix b/modules/services/metrics.nix index 5f03389..e8878a2 100644 --- a/modules/services/metrics.nix +++ b/modules/services/metrics.nix @@ -7,8 +7,8 @@ in { options.modules.services.metrics = { enable = mkEnableOption "metrics"; - domain = mkOption { type = types.str; }; - tls.acmeHost = mkOption { type = types.str; default = cfg.domain; }; + realHost = mkOption { type = types.str; }; + tls.acmeHost = mkOption { type = types.str; default = cfg.realHost; }; secrets.adminPassword = mkOption { type = types.path; description = "path to the admin password"; }; }; @@ -141,11 +141,11 @@ in settings.server.http_addr = "127.0.0.1"; settings.server.http_port = 2342; - settings.server.domain = cfg.domain; + settings.server.domain = cfg.realHost; settings.security.admin_password = "$__file{${cfg.secrets.adminPassword}}"; }; - services.nginx.virtualHosts.${cfg.domain} = { + services.nginx.virtualHosts.${cfg.realHost} = { forceSSL = true; useACMEHost = cfg.tls.acmeHost; |