Add cryptpad

This commit is contained in:
Cyryl Płotnicki 2022-07-19 13:20:48 +01:00
parent bca81cc9c2
commit 2e99f5b18d
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ config, pkgs, inputs, lib, ... }: {
imports = [ ../nginx.nix ];
services.nginx = {
virtualHosts = {
"notes.purrfect.estate" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9005";
proxyWebsockets = true;
};
};
};
};
virtualisation.oci-containers.containers.cryptpad = {
image = "promasu/cryptpad";
ports = [ "9005:3000" ];
};
}

View file

@ -9,6 +9,7 @@
../../server-common.nix
../../tailscale.nix
./foundryvtt.nix
./cryptpad.nix
];
systemd.extraConfig = ''