nix-flake/modules/system/homelab/docs.nix
2026-05-01 07:58:04 +07:00

25 lines
761 B
Nix

{ homelab, ... }: let
domain = "docs.${homelab.domain}";
sandbox = "docs-sandbox.${homelab.domain}";
data-dir = "/mnt/data/apps/cryptpad";
in {
services.cryptpad = {
enable = true;
settings = {
httpPort = 7090;
httpAddress = "127.0.0.1";
httpUnsafeOrigin = "https://${domain}";
httpSafeOrigin = "https://${sandbox}";
blockDailyCheck = true;
disableIntegratedEviction = true;
archivePath = "${data-dir}/archive";
pinPath = "${data-dir}/pins";
taskPath = "${data-dir}/tasks";
blockPath = "${data-dir}/block";
blobPath = "${data-dir}/blob";
blobStagingPath = "${data-dir}/blobstage";
decreePath = "${data-dir}/decrees";
logPath = "${data-dir}/logs";
};
};
}