diff options
-rw-r--r-- | vps-configuration.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vps-configuration.nix b/vps-configuration.nix index fa1d830..9fc8130 100644 --- a/vps-configuration.nix +++ b/vps-configuration.nix @@ -14,10 +14,7 @@ let matrixClientJSON = { "m.homeserver" = { "base_url" = "https://${TLD}"; }; }; matrixPort = 8008; static-sites = [ "boneco" "pdfs-da-d-maria" ]; - docs-projects = [ - { project-name = "songbooks"; redirect = "en/master/"; } - { project-name = "mediator"; redirect = "en/master/"; } - ]; + docs-projects = [ "songbooks" "mediator" ]; }; static-site-from-repo = repo-name: { "${repo-name}.${config.TLD}" = { @@ -36,13 +33,13 @@ let }; }; }; - docs-site-for-project = { project-name, redirect }: { + docs-site-for-project = project-name: { "${project-name}.${config.TLD}" = { forceSSL = true; enableACME = true; extraConfig = '' location = / { - return 301 ${redirect}; + return 301 en/master/; } root /data/static/${project-name}/; ''; |