From ca1fe8722f91bf2db89f4568ab56a6fbe20cb7c0 Mon Sep 17 00:00:00 2001 From: Zajsoft Date: Sun, 15 Jun 2025 20:10:56 +0200 Subject: [PATCH] IPv6 Fix If is IPv6 enabled, then localhost is resolved as [::1] 2025/06/15 19:24:19 [error] 431#431: *8575 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: netalertx, request: "GET / HTTP/1.1", upstream: "http://[::1]:20211/", host: "http://homeassistant.local/", referrer: "https:/homeassistant.local:48123/db21ed7f_netalertx_fa" --- netalertx/rootfs/etc/nginx/http.d/ingress.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netalertx/rootfs/etc/nginx/http.d/ingress.conf b/netalertx/rootfs/etc/nginx/http.d/ingress.conf index 249c56e42..3bbe1f863 100644 --- a/netalertx/rootfs/etc/nginx/http.d/ingress.conf +++ b/netalertx/rootfs/etc/nginx/http.d/ingress.conf @@ -6,7 +6,7 @@ server { include /etc/nginx/includes/proxy_params.conf; location / { - proxy_pass http://localhost:20211/; + proxy_pass http://127.0.0.1:20211/; rewrite ^%%ingress_entry%%/?(.*)$ /$1 break; sub_filter_once off; sub_filter_types *;