From ce5ad04d090bae3bb47e6f361c2b0269691c10a2 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 22 Aug 2020 22:23:54 -0300 Subject: NGINX songbooks: redirect root documentation to master --- vps-configuration.env.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index 5f5fd62..6ee3053 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -126,6 +126,11 @@ in { forceSSL = true; enableACME = true; root = "${envsubstConfiguration.staticRoot}/songbooks/"; + extraConfig = '' + location = / { + return 301 master/; + } + ''; }; "${envsubstConfiguration.prosodyTLD}" = { forceSSL = true; -- cgit v1.3