mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-18 18:27:57 +01:00
21 lines
424 B
Nix
21 lines
424 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
let
|
||
|
cfg = config.services.uptime-kuma;
|
||
|
domain = "status.pvv.ntnu.no";
|
||
|
in {
|
||
|
services.uptime-kuma = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
PORT = "5059";
|
||
|
HOST = "127.0.1.2";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts.${domain} = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
kTLS = true;
|
||
|
locations."/".proxyPass = "http://${cfg.settings.HOST}:${cfg.settings.PORT}";
|
||
|
};
|
||
|
}
|