Commit ed49987f authored by Stefan Seelmann's avatar Stefan Seelmann

Enable nginx

parent c9044841
......@@ -15,7 +15,25 @@
{
deployment.targetEnv = "none";
deployment.targetHost = "2a01:4f8:190:8243:a1:b67:0:2";
networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedTCPPorts = [ 22 80 ];
services.nginx = {
enable = true;
httpConfig = ''
upstream backend {
server 127.0.0.1:3000;
}
server {
listen [::]:80;
listen 80;
location / {
proxy_pass http://backend;
}
}
'';
};
systemd.services.yesod-webproject = {
description = "yesod-webproject";
after = [ "network.target" ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment