mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 20:17:31 +01:00
17 lines
342 B
Nix
17 lines
342 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
cfg = config.services.uptime-kuma;
|
|
in {
|
|
services.uptime-kuma = {
|
|
enable = true;
|
|
settings = {
|
|
PORT = "5059";
|
|
HOST = "127.0.1.2";
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts."uptime.home.feal.no" = {
|
|
locations."/".proxyPass = "http://${cfg.settings.HOST}:${cfg.settings.PORT}";
|
|
};
|
|
}
|