From 8335a93596e0e97abe0cebf53c9b77494e7f8100 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Wed, 17 Jan 2024 12:32:06 +0000 Subject: [PATCH] empyrean: revproxy mirror to catacomb Keeping a full local copy of the mirror is unsustainable without expanding empyrean's relatively small storage --- machine/empyrean/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/machine/empyrean/default.nix b/machine/empyrean/default.nix index 82cfb06..2716c3d 100644 --- a/machine/empyrean/default.nix +++ b/machine/empyrean/default.nix @@ -62,8 +62,16 @@ # Static pages "wedding.ktvb.site" = static-site "wedding.ktvb.site"; "www.ktvb.site" = static-site "www.ktvb.site"; - "mirror.alogoulogoi.com" = static-site "mirror.alogoulogoi.com"; "www.alogoulogoi.com" = static-site "www.alogoulogoi.com"; + # mirror revproxy + "mirror.alogoulogoi.com" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + access_log /var/log/nginx/access_mirror.alogoulogoi.com.log; + ''; + locations."/".proxyPass = "http://mirror.catacomb.home:7474/"; + }; # Deny all other subdomains "alogoulogoi.com" = { default = true;