1
0
Fork 0

nixbld: fix ssl for nginx hooks+notifico vhosts

This commit is contained in:
Astro 2019-05-13 17:18:04 +02:00
parent 5f5aa32341
commit 28879f2c89
1 changed files with 6 additions and 6 deletions

View File

@ -221,18 +221,18 @@ ACTION=="add", SUBSYSTEM=="tty", \
locations."~ /api/v[0-9]+/(users/)?websocket$".proxyWebsockets = true; locations."~ /api/v[0-9]+/(users/)?websocket$".proxyWebsockets = true;
}; };
"hooks.m-labs.hk" = { "hooks.m-labs.hk" = {
extraConfig = '' forceSSL = true;
location / { useACMEHost = "nixbld.m-labs.hk";
include ${pkgs.nginx}/conf/uwsgi_params; locations."/".extraConfig = ''
uwsgi_pass unix:${config.services.uwsgi.runDir}/uwsgi.sock; include ${pkgs.nginx}/conf/uwsgi_params;
} uwsgi_pass unix:${config.services.uwsgi.runDir}/uwsgi.sock;
''; '';
};
"notifico.m-labs.hk" = { "notifico.m-labs.hk" = {
forceSSL = true; forceSSL = true;
useACMEHost = "notifico.m-labs.hk"; useACMEHost = "notifico.m-labs.hk";
locations."/".proxyPass = "http://127.0.0.1:5000"; locations."/".proxyPass = "http://127.0.0.1:5000";
}; };
};
}; };
}; };
services.uwsgi = { services.uwsgi = {