You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
370 B
18 lines
370 B
[Unit]
|
|
Description=Caddy web server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=true
|
|
User=http
|
|
Environment=CADDY_OPTS="run --config /etc/caddy/caddy_config.json"
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
ExecStart=/usr/bin/caddy $CADDY_OPTS
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|