From de6742aa0d0751340b0a3d5fbfc7ffb582f21e3c Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Thu, 10 Oct 2024 16:45:23 +0200 Subject: [PATCH] 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 = [