mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 03:25:16 +00:00
26 lines
577 B
Desktop File
26 lines
577 B
Desktop File
[Unit]
|
|
Description=Syncthing Relay Server
|
|
After=network.target
|
|
Documentation=man:strelaysrv(1)
|
|
|
|
[Service]
|
|
WorkingDirectory=/var/lib/syncthing-relaysrv
|
|
EnvironmentFile=/etc/default/syncthing-relaysrv
|
|
ExecStart=/usr/bin/strelaysrv -nat=${NAT} $RELAYSRV_OPTS
|
|
|
|
# Hardening
|
|
User=syncthing-relaysrv
|
|
Group=syncthing
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/var/lib/syncthing-relaysrv
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectHome=true
|
|
SystemCallArchitectures=native
|
|
MemoryDenyWriteExecute=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=syncthing-relaysrv.service
|