2015-09-10 20:11:15 +00:00
|
|
|
[Unit]
|
2019-08-08 16:04:52 +00:00
|
|
|
Description=Syncthing Relay Server
|
2015-09-10 20:11:15 +00:00
|
|
|
After=network.target
|
2019-08-08 16:04:52 +00:00
|
|
|
Documentation=man:strelaysrv(1)
|
2015-09-10 20:11:15 +00:00
|
|
|
|
|
|
|
[Service]
|
2019-08-08 16:04:52 +00:00
|
|
|
WorkingDirectory=/var/lib/syncthing-relaysrv
|
|
|
|
EnvironmentFile=/etc/default/syncthing-relaysrv
|
|
|
|
ExecStart=/usr/bin/strelaysrv -nat=${NAT} $RELAYSRV_OPTS
|
2015-09-10 20:11:15 +00:00
|
|
|
|
2019-08-08 16:04:52 +00:00
|
|
|
# Hardening
|
|
|
|
User=syncthing-relaysrv
|
|
|
|
Group=syncthing
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=/var/lib/syncthing-relaysrv
|
|
|
|
NoNewPrivileges=true
|
2015-09-10 20:11:15 +00:00
|
|
|
PrivateTmp=true
|
2019-08-08 16:04:52 +00:00
|
|
|
PrivateDevices=true
|
2015-09-10 20:11:15 +00:00
|
|
|
ProtectHome=true
|
2019-08-08 16:04:52 +00:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
MemoryDenyWriteExecute=true
|
2015-09-10 20:11:15 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2019-08-08 16:04:52 +00:00
|
|
|
Alias=syncthing-relaysrv.service
|