nix-flake/modules/system/homelab/docs.nix
satr14 b135e301f1
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 29s
fix cryptpad websocket port
2026-05-01 08:18:29 +07:00

23 lines
582 B
Nix

{ homelab, ... }: let
domain = "docs.${homelab.domain}";
sandbox = "docs-sandbox.${homelab.domain}";
in {
services.cryptpad = {
enable = true;
settings = {
websocketPort = 7091;
httpPort = 7090;
httpAddress = "127.0.0.1";
httpUnsafeOrigin = "https://${domain}";
httpSafeOrigin = "https://${sandbox}";
blockDailyCheck = true;
disableIntegratedEviction = true;
};
};
fileSystems."/var/lib/cryptpad" = {
device = "/mnt/data/apps/cryptpad";
depends = [ "/mnt/data" ];
options = [ "bind" "nofail" ];
};
}