diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/unifi/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/services/unifi/default.nix b/modules/services/unifi/default.nix index 3ffae15..4f1924e 100644 --- a/modules/services/unifi/default.nix +++ b/modules/services/unifi/default.nix @@ -72,6 +72,18 @@ in services.nginx.virtualHosts."${cfg.vhostName}" = { forceSSL = true; useACMEHost = cfg.vhostName; + listen = [ + { + addr = "100.85.232.66"; + port = 443; + ssl = true; + } + { + addr = "100.85.232.66"; + port = 80; + ssl = false; + } + ]; locations."/" = { proxyPass = "http://127.0.0.1:8443"; proxyWebsockets = true; |