enable angie with status monitoring
This commit is contained in:
parent
850bac20e3
commit
16f603559e
@ -16,6 +16,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.angieQuic;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
@ -48,6 +49,18 @@ in
|
|||||||
proxyPass = "http://127.0.0.1:3001";
|
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/;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user