nixos-config/modules/system/services/server/uptime-kuma/nginx/default.nix
2025-07-02 22:06:01 -04:00

11 lines
291 B
Nix

{ config, lib, ... }:
{
services.nginx.virtualHosts."uptime.${config.vars.primeDomain}" = lib.mkIf config.services.uptime-kuma.enable {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:4005";
proxyWebsockets = true;
};
};
}