cryptpad config
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 24s

This commit is contained in:
Satria 2026-04-29 19:00:06 +07:00
commit bd7e176671

View file

@ -1,15 +1,30 @@
{ homelab, ... }: let { homelab, ... }: let
domain = "docs.${homelab.domain}"; domain = "docs.${homelab.domain}";
sandbox = "docs-sandbox.${homelab.domain}";
data-dir = "/mnt/data/apps/cryptpad";
in { in {
services.cryptpad = { services.cryptpad = {
enable = true; enable = true;
settings = { settings = {
httpPort = 7090; httpPort = 7090;
websocketPort = 7080; httpAddress = "127.0.0.1";
httpUnsafeOrigin = "https://${domain}"; httpUnsafeOrigin = "https://${domain}";
httpSafeOrigin = "https://${domain}"; httpSafeOrigin = "https://${sandbox}";
blockDailyCheck = true; blockDailyCheck = true;
disableIntegratedEviction = 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";
}; };
}; };
systemd.services.cryptpad.serviceConfig = {
ReadWritePaths = [ data-dir ];
ProtectMountPoints = false;
};
} }