From b52ae6a8591bec3c0cb3b046257fd449a00ca6c4 Mon Sep 17 00:00:00 2001 From: Ivan Dimitrov Date: Fri, 15 Sep 2023 20:38:09 +0300 Subject: [PATCH] nginx no config --- sys/mailserver/mailserver.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sys/mailserver/mailserver.nix b/sys/mailserver/mailserver.nix index 117c856..82fc6ab 100644 --- a/sys/mailserver/mailserver.nix +++ b/sys/mailserver/mailserver.nix @@ -25,13 +25,6 @@ "/" = { proxyPass = "http://localhost:3000/"; # Pointing to Next.js app proxyWebsockets = true; - extraConfig = '' - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - ''; }; }; }; @@ -39,7 +32,10 @@ }; }; - networking.firewall.allowedTCPPorts = [ 80 ]; + networking.firewall = { + enable = true; + allowedTCPPorts = [ 80 ]; + }; mailserver = { enable = true;