Skip to content

Instantly share code, notes, and snippets.

@ushkinaz
Created October 24, 2017 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ushkinaz/9c5d5bdf1e48b17719f14f6e0ab83540 to your computer and use it in GitHub Desktop.
Save ushkinaz/9c5d5bdf1e48b17719f14f6e0ab83540 to your computer and use it in GitHub Desktop.
Syncthing Relay Systemd Service
#/etc/default/syncthing-relay
KEYS=/etc/relaysrv
GLOBAL_RATE=10485760
PER_SESSION_RATE=212992
PROVIDED_BY='https://keybase.io/ushkinaz'
Description=Syncthing Relay
After=network.target
[Service]
User=relaysrv
EnvironmentFile=-/etc/default/syncthing-relay
ExecStart=/usr/bin/strelaysrv -keys=${KEYS} -global-rate=${GLOBAL_RATE} -per-session-rate=${PER_SESSION_RATE} -nat -provided-by=${PROVIDED_BY}
Restart=on-failure
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment