From 28879f2c892a4dd0eb195c67a81278371bdc7e34 Mon Sep 17 00:00:00 2001 From: Stephan Maka Date: Mon, 13 May 2019 17:18:04 +0200 Subject: [PATCH] nixbld: fix ssl for nginx hooks+notifico vhosts --- nixbld-etc-nixos/configuration.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index af6eba9..9ec86c8 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -221,18 +221,18 @@ ACTION=="add", SUBSYSTEM=="tty", \ locations."~ /api/v[0-9]+/(users/)?websocket$".proxyWebsockets = true; }; "hooks.m-labs.hk" = { - extraConfig = '' - location / { - include ${pkgs.nginx}/conf/uwsgi_params; - uwsgi_pass unix:${config.services.uwsgi.runDir}/uwsgi.sock; - } + forceSSL = true; + useACMEHost = "nixbld.m-labs.hk"; + locations."/".extraConfig = '' + include ${pkgs.nginx}/conf/uwsgi_params; + uwsgi_pass unix:${config.services.uwsgi.runDir}/uwsgi.sock; ''; + }; "notifico.m-labs.hk" = { forceSSL = true; useACMEHost = "notifico.m-labs.hk"; locations."/".proxyPass = "http://127.0.0.1:5000"; }; - }; }; }; services.uwsgi = {