From 3b4c8a5756da419b898751251e9a85357cb6f6b9 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Wed, 12 Jul 2023 22:32:32 +0200 Subject: [PATCH] Configure syncthing relay --- hosts/kamoshi/configuration.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hosts/kamoshi/configuration.nix b/hosts/kamoshi/configuration.nix index 4396d3b..41f1566 100644 --- a/hosts/kamoshi/configuration.nix +++ b/hosts/kamoshi/configuration.nix @@ -23,10 +23,11 @@ firewall = { enable = true; allowedTCPPorts = [ - 22 # endlessh - 80 # nginx - 443 # nginx TLS - 2222 # ssh + 22 # endlessh + 80 # nginx + 443 # nginx TLS + 2222 # ssh + 22070 22067 # syncthing relay ]; allowedUDPPorts = [ 42069 # wireguard @@ -125,6 +126,14 @@ user = "admin"; password = "admin"; }; + # public relay options + relay = { + enable = true; + providedBy = "kamoshi.org"; + statusPort = 22070; + port = 22067; + globalRateBps = 25000; + }; }; };