[lucia] add hedgedoc

This commit is contained in:
2024-03-04 20:00:32 +01:00
parent 7f97d6ee8c
commit 5e61113d3e

View File

@@ -130,6 +130,24 @@ in
ympd = {
enable = true;
};
hedgedoc = {
enable = true;
settings = {
allowAnonymousEdits = true;
allowEmailRegister = false;
allowFreeURL = true;
allowOrigin = [ "pad.malobeo.org" ];
db = {
dialect = "sqlite";
storage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
};
domain = "pad.malobeo.org";
port = 3333;
useSSL = false;
protocolUseSSL = true;
};
};
};
security.acme = {
@@ -153,7 +171,18 @@ in
proxyWebsockets = true;
};
};
virtualHosts."pad.malobeo.org" = {
enableACME = true;
forceSSL = true;
acmeRoot = null;
locations."/" = {
proxyPass = "http://127.0.0.1:3333";
proxyWebsockets = true;
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];