diff --git a/machines/public-cof/cryptpad.nix b/machines/public-cof/cryptpad.nix index dc27ca9..bcf6a6d 100644 --- a/machines/public-cof/cryptpad.nix +++ b/machines/public-cof/cryptpad.nix @@ -14,9 +14,15 @@ in environment.etc."cryptpad/config.js".source = ./cryptpad.js; services.nginx.virtualHosts = { - "docs.beta.rz.ens.wtf" = { + "pads.beta.rz.ens.wtf" = { forceSSL = true; enableACME = true; + locations = { + "/" = { + proxyPass = "http://localhost:3000"; + }; + }; + /* extraConfig = '' # CryptPad serves static assets over these two domains. # `main_domain` is what users will enter in their address bar. @@ -183,6 +189,7 @@ in # Finally, serve anything the above exceptions don't govern. try_files /www/$uri /www/$uri/index.html /customize/$uri; ''; + */ }; };