diff options
author | sefidel <contact@sefidel.net> | 2024-02-04 22:01:47 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-02-04 22:01:47 +0900 |
commit | ceda365269dad1b86ccd8d23932bc91ba443bc06 (patch) | |
tree | 063c07eb9ab69ced60e0cc3f83b1b4bacee01ad1 /modules | |
parent | cf7e6a3e3ccd5c417a7ed77475e699c3194a14f7 (diff) | |
download | infra-ceda365269dad1b86ccd8d23932bc91ba443bc06.tar.gz infra-ceda365269dad1b86ccd8d23932bc91ba443bc06.zip |
feat(modules/metrics)!: domain -> realHost
* For option consistency between modules
Diffstat (limited to 'modules')
-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; |