2020-04-24 12:13:14 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Crab Router
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2020-04-28 16:18:53 +01:00
|
|
|
User={{ user }}
|
2020-04-24 12:13:14 +01:00
|
|
|
ExecStart=/usr/bin/crab router
|
|
|
|
Environment="CRAB_ROUTER_HOST=0.0.0.0"
|
|
|
|
|
|
|
|
# Allow port 80 bind
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
|
|
|
|
# More protections, because why not
|
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
ProtectSystem=full
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
RequiredBy=multi-user.target
|