mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-12-23 21:44:21 +01:00
19 lines
330 B
Nix
19 lines
330 B
Nix
{ config, ... }:
|
|
let
|
|
domain = "monitoring.${config.networking.domain}";
|
|
in
|
|
{
|
|
services.uptime-kuma = {
|
|
enable = true;
|
|
};
|
|
services.nginx.virtualHosts."${domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:3001";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
|
|
}
|