[syncthing] Sets up relay on MCP

This commit is contained in:
2025-03-31 10:53:18 -07:00
parent 000cb8b614
commit 8f5b01498e
2 changed files with 17 additions and 2 deletions

View File

@@ -6,9 +6,15 @@
enable = lib.mkDefault true; enable = lib.mkDefault true;
}; };
settings = { settings = {
folders.Notes = {
path = "~/Documents/Notes";
};
options = { options = {
localAnnounceEnabled = false; localAnnounceEnabled = false;
relaysEnabled = false; relaysEnabled = true;
globalAnnounceEnabled = true;
globalAnnounceServer = "relay://mcp:22067";
listenAddress = "relay://mcp:22067";
}; };
}; };
}; };

View File

@@ -111,9 +111,18 @@
}; };
}; };
### Syncthing relay
# So I don't have to use public relays
services.syncthing.relay = {
enable = true;
pools = [ ];
};
### Firewall ### Firewall
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; networking.firewall.allowedTCPPorts = [
22067 # Syncthing relay
];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;