From fc18582a1bfc4738352b8401362a4f90a651461b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Tue, 24 Sep 2024 16:42:53 +0200 Subject: [PATCH] Make Garage API domain be localhost --- fediversity/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fediversity/default.nix b/fediversity/default.nix index 6a6b867..e4c45cd 100644 --- a/fediversity/default.nix +++ b/fediversity/default.nix @@ -2,7 +2,7 @@ let inherit (builtins) toString; - inherit (lib) mkOption mkEnableOption; + inherit (lib) mkOption mkEnableOption mkForce; inherit (lib.types) types; in { @@ -109,5 +109,10 @@ in { defaults.email = "nicolas.jeannerod+fediversity@moduscreate.com"; # defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory"; }; + + ## NOTE: For a one-machine deployment, this removes the need to provide an + ## `s3.garage.` domain. However, this will quickly stop working once + ## we go to multi-machines deployment. + fediversity.internal.garage.api.domain = mkForce "localhost"; }; }