ctucx.git: nixfiles

ctucx' nixfiles

commit 1d390eb90a14cd422450f4e2ad9863fdc78202cf
parent 1e30aee93b5cdd6357ddd5d979df1aea224ef3b7
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 27 Jan 2022 20:44:10 +0100

services/[prometheus-node-exporter,restic-server]: use config.networking.fqdn
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/configurations/services/prometheus-node-exporter.nix b/configurations/services/prometheus-node-exporter.nix
@@ -7,12 +7,10 @@
 
     nginx = {
       enable = true;
-      virtualHosts."${config.networking.hostName}.${config.networking.domain}" = {
+      virtualHosts."${config.networking.fqdn}" = {
         enableACME = true;
         forceSSL   = true;
-        locations."/node-exporter" = {
-          proxyPass   = "http://127.0.0.1:9100/metrics";
-        };
+        locations."/node-exporter".proxyPass = "http://127.0.0.1:9100/metrics";
       };
     };
   };
diff --git a/configurations/services/restic-server.nix b/configurations/services/restic-server.nix
@@ -17,7 +17,7 @@
 
     nginx = {
       enable = true;
-      virtualHosts."restic.${config.networking.hostName}.${config.networking.domain}" = {
+      virtualHosts."restic.${config.networking.fqdn}" = {
         enableACME = true;
         forceSSL   = true;
         locations."/" = {