Syncthing: Use ipv6 for web interface.

This commit is contained in:
Dmitry Voronin 2025-01-05 10:14:47 +03:00
parent fd97704264
commit b171d2bedd
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -14,14 +14,14 @@ in
# Access at sync.lan. # Access at sync.lan.
networking.hosts = { networking.hosts = {
"127.0.0.1" = [ "sync.local" ]; "::1" = [ "sync.local" ];
}; };
services.nginx.enable = true; services.nginx.enable = true;
services.nginx.virtualHosts."sync.local".extraConfig = '' services.nginx.virtualHosts."sync.local".extraConfig = ''
location / { location / {
allow 127.0.0.1; allow [::1];
deny all; deny all;
proxy_pass http://127.0.0.1:8384; proxy_pass http://[::1]:8384;
} }
''; '';