Syncthing: Use ipv6 for web interface.
This commit is contained in:
parent
fd97704264
commit
b171d2bedd
|
@ -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;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue