all repos — nixfiles @ 6b30f470fd33a6c6aa9079f982067949781a4182

System and user configuration, managed by nix and home-manager

searchix: add a backup host

Alin
commit

6b30f470fd33a6c6aa9079f982067949781a4182

parent

2412a0ba69c6c0a32d740f171ea5444461747b59

1 file changed, 7 insertions(+), 2 deletions(-)

changed files
M system/roles/searchix.nix → system/roles/searchix.nix
@@ -3,6 +3,9 @@ config,
pkgs, ... }: +let + port = toString config.services.searchix.settings.web.port; +in { imports = [ ../settings/services/searchix.nix
@@ -27,11 +30,13 @@ root /srv/http/access/searchix
file_server } handle { - reverse_proxy localhost:${toString config.services.searchix.settings.web.port} { + reverse_proxy { + to localhost:${port} r5.fin-marlin.ts.net:${port} + lb_policy first health_uri /health health_status 2xx health_interval 10s - health_timeout 1s + health_timeout 2s health_fails 2 } }