Server/syncthing: bind to localhost

This commit is contained in:
Toast 2024-11-03 20:20:07 +01:00
parent cd802ab3a6
commit e15aa9ba44

View file

@ -3,7 +3,7 @@
enable = true;
key = config.age.secrets.syncthingKey.path;
cert = config.age.secrets.syncthingCert.path;
guiAddress = "0.0.0.0:8384";
guiAddress = "127.0.0.1:8384";
settings.folders = {
"passwords" = {
path = "${config.services.syncthing.dataDir}/passwords";
@ -53,7 +53,9 @@
hostName = "sync.everest.tailscale";
extraConfig = ''
import tailscale
reverse_proxy localhost:8384
reverse_proxy localhost:8384 {
header_up Host {upstream_hostport}
}
'';
};
}