feat(kellnr): add sops config and docs flag, dynamic domain vhost
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

This commit is contained in:
2026-01-14 12:08:19 +05:30
parent 67305549bc
commit 6453bb62a1
2 changed files with 10 additions and 5 deletions

View File

@@ -6,22 +6,25 @@
port = 8899;
domain = "crates.darksailor.dev";
in {
sops = {
};
virtualisation.oci-containers = {
backend = "docker";
containers = {
excalidraw = {
kellnr = {
image = "ghcr.io/kellnr/kellnr:5";
ports = ["127.0.0.1:${toString port}:8000"];
volumes = [
"/var/lib/kellnr:/opt/kdata"
];
environment = {
"KELLNR_ORIGIN__HOSTNAME" = domain;
KELLNR_ORIGIN__HOSTNAME = domain;
KELLNR_DOCS__ENABLED = "true";
};
};
};
};
services.caddy.virtualHosts.domain.extraConfig = ''
services.caddy.virtualHosts."${domain}".extraConfig = ''
import auth
reverse_proxy localhost:${toString port}
'';