From a11bde6af71fc87a329ad8029547b6823b4f0cf4 Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 4 Mar 2024 22:13:44 +0100 Subject: [PATCH] [lucia] working hedgedoc still user config is needed --- machines/lucia/configuration.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/machines/lucia/configuration.nix b/machines/lucia/configuration.nix index 516a6ac..33d1f8e 100644 --- a/machines/lucia/configuration.nix +++ b/machines/lucia/configuration.nix @@ -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;" + ; }; }; };