From 5e24c6c8c7d32c45ea4c990dc92354712ebbce94 Mon Sep 17 00:00:00 2001 From: gabriel-doriath-dohler Date: Mon, 15 Nov 2021 01:06:57 +0100 Subject: [PATCH] try simple cryptpad module --- machines/public-cof/cryptpad.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; ''; + */ }; };