Ansible role to set up syncthing, with relay and discovery server, nginx frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
600 B

# /etc/systemd/system/strelaysrv.service.d/override.conf
[Service]
User=
User=syncthing
Group=
Group=syncthing
WorkingDirectory=/var/lib/syncthing/relaysrv
ReadWritePaths=
ReadWritePaths=/var/lib/syncthing/relaysrv
ExecStart=
ExecStart=/usr/bin/strelaysrv -nat={{ syncthing_relay_nat|default('true') }} -global-rate {{syncthing_relay_rate|default('500000')}}{% if syncthing_relay_provided_by %} -provided-by="{{syncthing_relay_provided_by}}"{% endif %} ${STRELAYSRV_OPTS}
# Already set by ubuntu-shipped default unit
#PrivateDevices=true
#ProtectSystem=full
#ProtectHome=true
#NoNewPrivileges=true