about summary refs log tree commit diff
path: root/modules/services/monitoring
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-07 13:45:04 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-08 19:22:28 -0700
commit5d11f49ecf05048626227dfe6f758360775b300f (patch)
treeac86934f30f88b8749fcbf930a2660e3326d92c9 /modules/services/monitoring
parentmodule for homelab (diff)
downloadworld-5d11f49ecf05048626227dfe6f758360775b300f.tar.gz
profile/acme: default DNS provider is gandi
Add the API key for gandi to the secrest, create a profile for acme with
my defaults.

The profile is loaded by tahoe since that's where our services are
running on.

Update all the servers in nginx to listen on their wireguard interface.
Diffstat (limited to 'modules/services/monitoring')
-rw-r--r--modules/services/monitoring/grafana.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/services/monitoring/grafana.nix b/modules/services/monitoring/grafana.nix
index 9b75fc3..28e86f6 100644
--- a/modules/services/monitoring/grafana.nix
+++ b/modules/services/monitoring/grafana.nix
@@ -46,15 +46,15 @@ in
 
     services.nginx.virtualHosts."${cfg.vhostName}" = {
       forceSSL = true;
-      useACMEHost = cfg.vhostName;
+      useACMEHost = config.homelab.domain;
       listen = [
         {
-          addr = "100.85.232.66";
+          addr = "192.168.6.40";
           port = 443;
           ssl = true;
         }
         {
-          addr = "100.85.232.66";
+          addr = "192.168.6.40";
           port = 80;
           ssl = false;
         }
@@ -67,11 +67,6 @@ in
       };
     };
 
-    security.acme.certs."${cfg.vhostName}" = {
-      dnsProvider = "gcloud";
-      credentialsFile = secrets."acme/credentials".path;
-    };
-
     my.services.backup = {
       paths = [ "/var/lib/grafana" ];
       exclude = [