fdd4f4b443
All checks were successful
build configuration / build_vault01 (push) Successful in 1m10s
build configuration / build_web02 (push) Successful in 1m11s
build configuration / build_storage01 (push) Successful in 1m13s
build configuration / build_compute01 (push) Successful in 1m22s
lint / check (push) Successful in 23s
build configuration / build_web01 (push) Successful in 1m38s
build configuration / build_rescue01 (push) Successful in 1m41s
26 lines
418 B
Nix
26 lines
418 B
Nix
let
|
|
host = "status.dgnum.eu";
|
|
|
|
port = 3001;
|
|
in
|
|
{
|
|
services.uptime-kuma.enable = true;
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
|
|
virtualHosts.${host} = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${builtins.toString port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
80
|
|
443
|
|
];
|
|
}
|