about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-12 15:37:33 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-12 15:37:33 -0700
commita9bb14c7281c90dd8cddebcc656861c6f61d8837 (patch)
treebac18f9abecc8739cfe2f8b0e3aef265258c59a6
parentprofiles/nginx: set the default port to 8080 (diff)
downloadworld-a9bb14c7281c90dd8cddebcc656861c6f61d8837.tar.gz
profiles/monitoring: a bunch of fixes
-rw-r--r--modules/services/monitoring/grafana.nix2
-rw-r--r--profiles/monitoring/loki.nix2
-rw-r--r--profiles/nginx.nix2
-rw-r--r--profiles/router.nix2
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/services/monitoring/grafana.nix b/modules/services/monitoring/grafana.nix
index c24506f..4407354 100644
--- a/modules/services/monitoring/grafana.nix
+++ b/modules/services/monitoring/grafana.nix
@@ -33,7 +33,7 @@ in
           }
           {
             name = "loki";
-            url = "http://loki.${config.homelab.domain}";
+            url = "https://loki.${config.homelab.domain}";
             type = "loki";
           }
         ];
diff --git a/profiles/monitoring/loki.nix b/profiles/monitoring/loki.nix
index 012b986..4b31bb4 100644
--- a/profiles/monitoring/loki.nix
+++ b/profiles/monitoring/loki.nix
@@ -96,7 +96,7 @@
       }
     ];
     locations."/" = {
-      proxyPass = "http://127.0.0.1:${toString services.loki.configuration.server.http_listen_port}";
+      proxyPass = "http://127.0.0.1:${toString config.services.loki.configuration.server.http_listen_port}";
     };
   };
 }
diff --git a/profiles/nginx.nix b/profiles/nginx.nix
index 7446cbc..e32106f 100644
--- a/profiles/nginx.nix
+++ b/profiles/nginx.nix
@@ -8,7 +8,7 @@
     # configuration of the router, since we need to listen on port 80
     # too for streaming.
     statusPage = true;
-    defaultHTTPListenPort = 8080;
+    defaultHTTPListenPort = 8008;
 
     recommendedGzipSettings = true;
     recommendedOptimisation = true;
diff --git a/profiles/router.nix b/profiles/router.nix
index 1f33bca..d259d6a 100644
--- a/profiles/router.nix
+++ b/profiles/router.nix
@@ -52,7 +52,7 @@
       dhcp-host=d8:bb:c1:44:1c:d3,tahoe,192.168.0.40,infinite
 
       # hosted names
-      cname=loki.fcuny.xyz,192.168.6.40
+      host-record=loki,loki.${config.homelab.domain},192.168.6.40
     '';
   };