[lucia] working hedgedoc

still user config is needed
This commit is contained in:
2024-03-04 22:13:44 +01:00
parent 6b5e86d841
commit a11bde6af7

View File

@@ -134,10 +134,10 @@ in
hedgedoc = {
enable = true;
settings = {
allowAnonymousEdits = true;
allowEmailRegister = false;
allowFreeURL = true;
allowOrigin = [ "pad.malobeo.org" ];
#allowAnonymousEdits = true;
#allowEmailRegister = false;
#allowFreeURL = true;
allowOrigin = [ "localhost" "pad.malobeo.org" ];
db = {
dialect = "sqlite";
storage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
@@ -145,7 +145,7 @@ in
domain = "pad.malobeo.org";
port = 3333;
useSSL = false;
protocolUseSSL = true;
protocolUseSSL = false;
};
};
};
@@ -214,9 +214,18 @@ in
enableACME = true;
forceSSL = true;
acmeRoot = null;
locations."/" = {
proxyPass = "http://127.0.0.1:3333";
proxyPass = "http://localhost:3333";
#proxyWebsockets = true;
};
locations."/socket.io/" = {
proxyPass = "http://localhost:3333";
proxyWebsockets = true;
extraConfig =
"proxy_ssl_server_name on;"
;
};
};
};