enable angie with status monitoring

This commit is contained in:
Ivan Dimitrov 2024-05-17 14:07:48 +03:00
parent 850bac20e3
commit 16f603559e

View File

@ -16,6 +16,7 @@ in
services = {
nginx = {
enable = true;
package = pkgs.angieQuic;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
@ -48,6 +49,18 @@ in
proxyPass = "http://127.0.0.1:3001";
};
};
"status.idimitrov.dev" = {
enableACME = true;
forceSSL = true;
root = "${pkgs.angie-console-light}/share/angie-console-light/html";
extraConfig = restrictToVpn;
locations."/" = { };
locations."/api/" = {
extraConfig = ''
api /status/;
'';
};
};
};
};
};