add syncthing-relaysrv

This commit is contained in:
Fl1tzi 2023-10-28 18:29:55 +02:00
parent b749e05dd2
commit 7d9c267ae0
No known key found for this signature in database
GPG key ID: 06B333727810C686
2 changed files with 22 additions and 0 deletions

2
syncthing-relaysrv/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
token.txt
data/

20
syncthing-relaysrv/compose.sh Executable file
View file

@ -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)"