cryptpad config
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 24s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 24s
This commit is contained in:
parent
7dbb09ebff
commit
bd7e176671
1 changed files with 17 additions and 2 deletions
|
|
@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue