cluster/services/attic: remove minio fallback

This commit is contained in:
Max Headroom 2024-06-29 21:48:59 +02:00
parent 221a74793c
commit 2995b78bc7

View file

@ -1,12 +1,5 @@
{ config, cluster, depot, ... }: { config, cluster, depot, ... }:
with depot.lib.nginx; with depot.lib.nginx;
let
addrSplit' = builtins.split ":" config.services.minio.listenAddress;
addrSplit = builtins.filter builtins.isString addrSplit';
host' = builtins.head addrSplit;
host = if host' == "" then "127.0.0.1" else host';
port = builtins.head (builtins.tail addrSplit);
in
{ {
links.garageNixStoreInternalRedirect = { links.garageNixStoreInternalRedirect = {
protocol = "http"; protocol = "http";
@ -25,10 +18,6 @@ in
"${config.links.garageNixStoreInternalRedirect.tuple}" = { "${config.links.garageNixStoreInternalRedirect.tuple}" = {
fail_timeout = 0; fail_timeout = 0;
}; };
"${host}:${port}" = {
fail_timeout = 0;
backup = true;
};
}; };
}; };
services.nginx.appendHttpConfig = '' services.nginx.appendHttpConfig = ''