From 0d8fd38ac94e3c41521c8ca6f7c1fd5729a4f58f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 9 May 2023 19:00:33 -0700 Subject: modules/unifi: fix the configuration The wrong certificate was served. --- modules/services/unifi/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'modules/services') diff --git a/modules/services/unifi/default.nix b/modules/services/unifi/default.nix index f3335ab..6ac45bc 100644 --- a/modules/services/unifi/default.nix +++ b/modules/services/unifi/default.nix @@ -43,15 +43,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; } @@ -62,11 +62,6 @@ in }; }; - security.acme.certs."${cfg.vhostName}" = { - dnsProvider = "gcloud"; - credentialsFile = secrets."acme/credentials".path; - }; - my.services.backup = { paths = [ "/var/lib/unifi/data/backup" ]; }; }; } -- cgit 1.4.1