From ceda365269dad1b86ccd8d23932bc91ba443bc06 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 4 Feb 2024 22:01:47 +0900 Subject: feat(modules/metrics)!: domain -> realHost * For option consistency between modules --- modules/services/metrics.nix | 8 ++++---- 1 file 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; -- cgit 1.4.1