git » gofer » main » tree

[main] / etc / systemd / system / gofer.service

[Unit]
Description=gofer web server and reverse proxy

[Service]
ExecStart=/usr/local/bin/gofer -configfile=/etc/gofer.yaml

Type=simple
Restart=always

User=gofer
Group=gofer
DynamicUser=true

# Allow gofer to write in /var, since it is a common destination for logs.
ReadWritePaths=/var

# Cache directory, used by autocerts.
CacheDirectory=gofer

# Logs directory, for convenience.
# To use this, configure reqlogs to be inside /var/log/gofer/.
LogsDirectory=gofer

# Let gofer listen on ports < 1024.
AmbientCapabilities=CAP_NET_BIND_SERVICE

# Simple security measures just in case.
ProtectSystem=full

[Install]
WantedBy=multi-user.target