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

20 lines
481 B
Nix
Raw 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;
2024-03-28 16:26:59 +00:00
email = true;
allowEmailRegister = true;
2023-04-16 08:33:46 +00:00
allowOrigin = [ "op.pai.wtf" ];
};
environmentFile = "/run/secrets/services/hedgedoc/.env";
groups = [ config.users.groups.keys.name ];
};
}