nginx no config

This commit is contained in:
Ivan Dimitrov 2023-09-15 20:38:09 +03:00
parent 6ade9b9dcb
commit b52ae6a859

View File

@ -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;