[Unit]
Description=Syncthing Relay Server
Documentation=https://github.com/syncthing/relaysrv
After=network.target

[Service]
Type=simple
User=root
Group=root
ExecStart=/opt/strelaysrv/strelaysrv -pools=""
WorkingDirectory=/opt/strelaysrv
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal

# Security settings
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/strelaysrv

[Install]
WantedBy=multi-user.target