Compare commits
2 commits
853e5a3d99
...
d4de48420f
| Author | SHA1 | Date | |
|---|---|---|---|
| d4de48420f | |||
| 14a65b8c7e |
2 changed files with 12 additions and 15 deletions
|
|
@ -3,10 +3,6 @@
|
||||||
sandbox = "docs-sandbox.${homelab.domain}";
|
sandbox = "docs-sandbox.${homelab.domain}";
|
||||||
data-dir = "/mnt/data/apps/cryptpad";
|
data-dir = "/mnt/data/apps/cryptpad";
|
||||||
in {
|
in {
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d ${data-dir} 0750 cryptpad cryptpad -"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.cryptpad = {
|
services.cryptpad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -16,16 +12,12 @@ in {
|
||||||
httpSafeOrigin = "https://${sandbox}";
|
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 ];
|
fileSystems."/var/lib/cryptpad" = {
|
||||||
|
device = "/mnt/data/apps/cryptpad";
|
||||||
|
dependsOn = [ "/mnt/data" ];
|
||||||
|
options = [ "bind" "nofail" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,15 @@
|
||||||
backupDir = "/mnt/data/apps/vaultwarden/backups";
|
backupDir = "/mnt/data/apps/vaultwarden/backups";
|
||||||
environmentFile = "/mnt/data/apps/vaultwarden/.env";
|
environmentFile = "/mnt/data/apps/vaultwarden/.env";
|
||||||
config = {
|
config = {
|
||||||
DATA_FOLDER = "/mnt/data/apps/vaultwarden/data";
|
|
||||||
ROCKET_PORT = 8060;
|
ROCKET_PORT = 8060;
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
ROCKET_ADDRESS = "127.0.0.1";
|
||||||
ROCKET_LOG = "critical";
|
ROCKET_LOG = "critical";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/vaultwarden" = {
|
||||||
|
device = "/mnt/data/apps/vaultwarden/data";
|
||||||
|
dependsOn = [ "/mnt/data" ];
|
||||||
|
options = [ "bind" "nofail" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue