dotfiles/files/crab.service
Jake Howard 6804cd0edb
Run the crab service as me
Otherwise it doesn't have access to enumerate my processes, which really is how it's meant to be!
2020-04-28 16:18:53 +01:00

23 lines
409 B
Desktop File

[Unit]
Description=Crab Router
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User={{ user }}
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