setting up hedgedoc

This commit is contained in:
2026-04-11 11:37:30 -04:00
parent d2f447a1af
commit 67622c0e51
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{
services.hedgedoc = {
enable = true;
settings = {
host = "0.0.0.0";
port = 3000;
domain = "192.168.90.40";
urlAddPort = true;
protocolUseSSL = false;
db = {
dialect = "postgres";
database = "hedgedoc";
username = "hedgedoc";
host = "/run/postgresql";
};
};
};
networking.firewall.allowedTCPPorts = [ 3000 ];
systemd.services.hedgedoc = {
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
};
}