diff options
author | Franck Cuny <franck@fcuny.net> | 2023-05-09 19:00:33 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-05-09 19:00:33 -0700 |
commit | 0d8fd38ac94e3c41521c8ca6f7c1fd5729a4f58f (patch) | |
tree | d34df2f124e3f873ded6390b7a7371993dd0d89b /modules/services | |
parent | hosts/tahoe: don't load transmission (diff) | |
download | world-0d8fd38ac94e3c41521c8ca6f7c1fd5729a4f58f.tar.gz |
modules/unifi: fix the configuration
The wrong certificate was served.
Diffstat (limited to 'modules/services')
-rw-r--r-- | modules/services/unifi/default.nix | 11 |
1 files changed, 3 insertions, 8 deletions
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" ]; }; }; } |