aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-22 22:23:54 -0300
committerEuAndreh <eu@euandre.org>2020-08-22 22:23:54 -0300
commitce5ad04d090bae3bb47e6f361c2b0269691c10a2 (patch)
treebf40d09149b5ff2508338a5bebd102ad7c06c932
parentRe-add missing GIT_ROOT (diff)
downloadtoph-ce5ad04d090bae3bb47e6f361c2b0269691c10a2.tar.gz
toph-ce5ad04d090bae3bb47e6f361c2b0269691c10a2.tar.xz
NGINX songbooks: redirect root documentation to master
-rw-r--r--vps-configuration.env.nix5
1 files changed, 5 insertions, 0 deletions
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;