nixbld: fix ssl for nginx hooks+notifico vhosts
This commit is contained in:
parent
5f5aa32341
commit
28879f2c89
|
@ -221,12 +221,13 @@ 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";
|
||||||
|
locations."/".extraConfig = ''
|
||||||
include ${pkgs.nginx}/conf/uwsgi_params;
|
include ${pkgs.nginx}/conf/uwsgi_params;
|
||||||
uwsgi_pass unix:${config.services.uwsgi.runDir}/uwsgi.sock;
|
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";
|
||||||
|
@ -234,7 +235,6 @@ ACTION=="add", SUBSYSTEM=="tty", \
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
services.uwsgi = {
|
services.uwsgi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "python3" ];
|
plugins = [ "python3" ];
|
||||||
|
|
Loading…
Reference in New Issue