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"
This commit is contained in:
Zajsoft
2025-06-15 20:10:56 +02:00
committed by GitHub
parent 922c60f81b
commit ca1fe8722f

View File

@@ -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 *;