1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00
Files
niveum/systems/ful/ical-ephemeris.nix

25 lines
490 B
Nix
Raw Normal View History

2025-10-06 13:10:40 +02:00
{ config, ... }:
let
port = 9090;
in
2025-10-06 12:29:29 +02:00
{
services.nginx.virtualHosts."ical-ephemeris.kmein.de" = {
2025-10-06 13:10:40 +02:00
forceSSL = true;
2025-10-06 12:29:29 +02:00
enableACME = true;
locations."/" = {
2025-10-06 13:10:40 +02:00
proxyPass = "http://localhost:${toString port}/";
2025-10-06 12:29:29 +02:00
};
};
services.ical-ephemeris = {
enable = true;
2025-10-06 13:10:40 +02:00
inherit port;
2025-10-06 12:29:29 +02:00
brevoApiKeyFile = config.age.secrets.brevo-key.path;
baseUrl = "https://ical-ephemeris.kmein.de";
};
age.secrets.brevo-key = {
file = ../../secrets/brevo-key.age;
};
}