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;
|
2024-03-28 16:26:59 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|