mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
host ical ephemeris MVP
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
let
|
||||
port = 9090;
|
||||
in
|
||||
{
|
||||
services.nginx.virtualHosts."ical-ephemeris.kmein.de" = {
|
||||
addSSL = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:9090";
|
||||
proxyPass = "http://localhost:${toString port}/";
|
||||
};
|
||||
};
|
||||
|
||||
services.ical-ephemeris = {
|
||||
enable = true;
|
||||
port = 9090;
|
||||
inherit port;
|
||||
brevoApiKeyFile = config.age.secrets.brevo-key.path;
|
||||
baseUrl = "https://ical-ephemeris.kmein.de";
|
||||
};
|
||||
|
||||
age.secrets.brevo-key = {
|
||||
file = ../../secrets/brevo-key.age;
|
||||
owner = "ical-ephemeris";
|
||||
group = "ical-ephemeris";
|
||||
mode = "0400";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user