From 7d9c267ae0a565c2fb910945470cf2dcf0a94052 Mon Sep 17 00:00:00 2001 From: Fl1tzi Date: Sat, 28 Oct 2023 18:29:55 +0200 Subject: [PATCH] add syncthing-relaysrv --- syncthing-relaysrv/.gitignore | 2 ++ syncthing-relaysrv/compose.sh | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 syncthing-relaysrv/.gitignore create mode 100755 syncthing-relaysrv/compose.sh diff --git a/syncthing-relaysrv/.gitignore b/syncthing-relaysrv/.gitignore new file mode 100644 index 0000000..8e8e03a --- /dev/null +++ b/syncthing-relaysrv/.gitignore @@ -0,0 +1,2 @@ +token.txt +data/ diff --git a/syncthing-relaysrv/compose.sh b/syncthing-relaysrv/compose.sh new file mode 100755 index 0000000..8845e58 --- /dev/null +++ b/syncthing-relaysrv/compose.sh @@ -0,0 +1,20 @@ +#/bin/bash + +podman pod create --name=syncthing-relaysrv \ + -p 22067:22067 + +# global limit: 500 mbit +# per-seesion limit: 100 mbit + +podman create \ + --pod syncthing-relaysrv \ + --name strelay \ + --volume=./data/:/var/strelaysrv/:Z \ + docker.io/syncthing/relaysrv:1.25.0 \ + -pools="" \ + -status-srv="" \ + -token="$(cat ./token.txt)" \ + -global-rate=65536000 \ + -per-session-rate=13107200 + +echo "Token: $(cat ./token.txt)"