mailserver nginx point to localhost 3000

This commit is contained in:
Ivan Dimitrov 2023-09-15 20:26:52 +03:00
parent ac9523cafc
commit 8d6257d829

View File

@ -21,6 +21,19 @@
"idimitrov.dev" = {
addSSL = true;
enableACME = true;
locations = {
"/" = {
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;
'';
};
};
};
};
};