nixos-config/hosts/nuc/modules/uptime-kuma/default.nix

19 lines
326 B
Nix
Raw Normal View History

2023-09-19 13:47:08 +02:00
{ config, ... }:
2023-07-15 11:54:30 +02:00
let
2023-10-29 11:58:56 +01:00
domain = "uptime.${config.networking.domain}";
2023-07-15 11:54:30 +02:00
in
{
services.uptime-kuma = {
enable = true;
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3001";
proxyWebsockets = true;
};
};
}