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;" + ; }; }; };