From 0b3fe57a937f35db33ce8800b896583f61715d12 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 6 Jan 2025 17:40:54 +0800 Subject: [PATCH] Use dedicated website folder for PH region Signed-off-by: Egor Savkin --- nixbld-etc-nixos/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 6f530f2..398bd19 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -752,6 +752,10 @@ in job = web:web:web command = [ $(jq '.buildStatus' < $HYDRA_JSON) = 0 ] && ln -sfn $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/web + + job = web:web:web-ph + command = [ $(jq '.buildStatus' < $HYDRA_JSON) = 0 ] && ln -sfn $(jq -r '.outputs[0].path' < $HYDRA_JSON) ${hydraWwwOutputs}/web-ph + job = web:web:web-intl command = [ $(jq '.buildStatus' < $HYDRA_JSON) = 0 ] && ${pkgs.rsync}/bin/rsync -r -c $(jq -r '.outputs[0].path' < $HYDRA_JSON)/ zolaupd@10.47.3.0:/var/www/m-labs-intl.com/html/ @@ -1049,7 +1053,10 @@ in enableACME = true; globalRedirect = "m-labs.hk"; }; - "m-labs.ph" = mainWebsite; + "m-labs.ph" = mainWebsite // { + root = "${hydraWwwOutputs}/web-ph"; + forceSSL = true; + }; "www.m-labs.ph" = { addSSL = true; enableACME = true;