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 = [