about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-02-04 22:01:47 +0900
committersefidel <contact@sefidel.net>2024-02-04 22:01:47 +0900
commitceda365269dad1b86ccd8d23932bc91ba443bc06 (patch)
tree063c07eb9ab69ced60e0cc3f83b1b4bacee01ad1 /modules/services
parentcf7e6a3e3ccd5c417a7ed77475e699c3194a14f7 (diff)
downloadinfra-ceda365269dad1b86ccd8d23932bc91ba443bc06.tar.gz
infra-ceda365269dad1b86ccd8d23932bc91ba443bc06.zip
feat(modules/metrics)!: domain -> realHost
* For option consistency between modules
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/metrics.nix8
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;