infrastructure/hosts/kinda.sus.lol/services/hedgedoc.nix

20 lines
483 B
Nix
Raw Permalink Normal View History

2023-04-16 08:33:46 +00:00
{ config, ... }:
{
networking.firewall.allowedTCPPorts = [ 3000 ];
services.hedgedoc = {
enable = true;
settings = {
2023-04-16 08:41:16 +00:00
dbURL = "postgres://filled:by@dotenv:5432/file";
2023-04-16 08:33:46 +00:00
domain = "op.pai.wtf";
2023-04-16 08:45:41 +00:00
host = "0.0.0.0";
2023-04-16 08:33:46 +00:00
protocolUseSSL = true;
email = false;
allowEmailRegister = false;
allowOrigin = [ "op.pai.wtf" ];
};
environmentFile = "/run/secrets/services/hedgedoc/.env";
groups = [ config.users.groups.keys.name ];
};
}