From 486ad762322e86711afbad2af48e14e91993baea Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 2 Sep 2020 06:35:19 -0300 Subject: Add cement documentation --- vps-configuration.env.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vps-configuration.env.nix') diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index 8bf103e..68976cf 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -11,6 +11,7 @@ let ciLogsTLD = "$CI_LOGS_TLD"; songbooksDocumentationTLD = "$SONGBOOKS_DOCUMENTATION_TLD"; piresDocumentationTLD = "$PIRES_DOCUMENTATION_TLD"; + cementDocumentationTLD = "$CEMENT_DOCUMENTATION_TLD"; piresProdTLD = "$PIRES_PROD_TLD"; piresProdPort = "$PIRES_PROD_PORT"; piresProdDir = "$PIRES_PROD_DIR"; @@ -160,6 +161,16 @@ in { enableACME = true; root = "${envsubstConfiguration.ciLogsRoot}"; }; + "${envsubstConfiguration.cementDocumentationTLD}" = { + forceSSL = true; + enableACME = true; + extraConfig = '' + location = / { + return 301 master/; + } + root ${envsubstConfiguration.staticRoot}/cement/; + ''; + }; "${envsubstConfiguration.songbooksDocumentationTLD}" = { forceSSL = true; enableACME = true; -- cgit v1.2.3