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, ... }:
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 = {
protocol = "http";
@ -25,10 +18,6 @@ in
"${config.links.garageNixStoreInternalRedirect.tuple}" = {
fail_timeout = 0;
};
"${host}:${port}" = {
fail_timeout = 0;
backup = true;
};
};
};
services.nginx.appendHttpConfig = ''