From de6742aa0d0751340b0a3d5fbfc7ffb582f21e3c Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Thu, 10 Oct 2024 16:45:23 +0200 Subject: [PATCH 1/2] feat(storage01): add s3-admin.dgnum.eu This is the administration endpoint of the S3, you can create new buckets and more, from there. Signed-off-by: Ryan Lahfa --- machines/storage01/garage.nix | 11 +++++++++++ meta/dns.nix | 2 ++ 2 files changed, 13 insertions(+) diff --git a/machines/storage01/garage.nix b/machines/storage01/garage.nix index 4d74dcf..011b3a5 100644 --- a/machines/storage01/garage.nix +++ b/machines/storage01/garage.nix @@ -77,6 +77,17 @@ in users.groups.garage = { }; services.nginx.virtualHosts = { + "s3-admin.dgnum.eu" = { + enableACME = true; + forceSSL = true; + + locations."/".extraConfig = '' + proxy_pass http://127.0.0.1:3902; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + ''; + }; + ${host} = { enableACME = true; forceSSL = true; diff --git a/meta/dns.nix b/meta/dns.nix index 59007dc..8f40258 100644 --- a/meta/dns.nix +++ b/meta/dns.nix @@ -87,6 +87,8 @@ let "*.s3" "cdn" "s3" + # The administration endpoint for Garage. + "s3-admin" ]; rescue01.dual = [ -- 2.47.0 From 12b20e6acf3fa08016cdf256aec9d9ec78fa3c96 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Thu, 10 Oct 2024 12:34:53 +0200 Subject: [PATCH 2/2] feat(storage01): add monorepo-terraform-state.s3.dgnum.eu This is required to bootstrap the Terranix setup. Signed-off-by: Ryan Lahfa --- machines/storage01/garage.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machines/storage01/garage.nix b/machines/storage01/garage.nix index 011b3a5..c005fa4 100644 --- a/machines/storage01/garage.nix +++ b/machines/storage01/garage.nix @@ -15,6 +15,8 @@ let ]; buckets = [ + "monorepo-terraform-state" + "banda-website" "castopod-dgnum" "hackens-website" -- 2.47.0