[syncthing] More relay config

This commit is contained in:
2025-04-02 17:42:11 -07:00
parent b31594b567
commit 9a717be22d
2 changed files with 8 additions and 2 deletions

View File

@@ -13,7 +13,11 @@
Notes = { Notes = {
label = "Notes"; label = "Notes";
path = "~/Documents/Notes"; path = "~/Documents/Notes";
devices = [ "altair" "mcp" "vega" ]; devices = [
"altair"
"mcp"
"vega"
];
}; };
}; };
devices = { devices = {
@@ -47,7 +51,7 @@
globalAnnounceEnabled = false; globalAnnounceEnabled = false;
relaysEnabled = true; relaysEnabled = true;
listenAddresses = [ listenAddresses = [
"relay://syncthing.blazestar.net:22067" "relay://syncthing.blazestar.net:22067/?id=TITGK5I-55GDSAF-HHPCSMZ-AHD2YKT-LZSKYRQ-5B6MGE4-LMLNEP6-KQ4UJQF&networkTimeout=2m0s&pingInterval=1m0s&statusAddr=%3A22070"
]; ];
# Whether the user has accepted submitting usage data. 0 is no-choice. # Whether the user has accepted submitting usage data. 0 is no-choice.
# -1 means no. A positive integer means yes. # -1 means no. A positive integer means yes.

View File

@@ -115,6 +115,7 @@
# So I don't have to use public relays # So I don't have to use public relays
services.syncthing.relay = { services.syncthing.relay = {
enable = true; enable = true;
# Leave this empty, meaning it won't join any public pools.
pools = [ ]; pools = [ ];
}; };
@@ -122,6 +123,7 @@
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
22067 # Syncthing relay 22067 # Syncthing relay
22070 # Syncthing relay status
]; ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.