2026-01-07 14:27:55 +03:00
|
|
|
[Unit]
|
2026-02-04 12:29:56 +03:00
|
|
|
Description=WAF ({{ caddy_my_name }}) (built with BYOW: Build Your Own WAF)
|
2026-01-07 14:27:55 +03:00
|
|
|
After=network.target network-online.target
|
|
|
|
|
Requires=network-online.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=notify
|
2026-01-20 12:27:03 +03:00
|
|
|
User={{ caddy_system_user }}
|
|
|
|
|
Group={{ caddy_system_group }}
|
2026-02-04 12:29:56 +03:00
|
|
|
ExecStart={{ caddy_binary }} run --environ --config {{ caddy_config_dir }}/Caddyfile
|
|
|
|
|
ExecReload={{ caddy_binary }} reload --config {{ caddy_config_dir }}/Caddyfile --force
|
2026-01-07 14:27:55 +03:00
|
|
|
TimeoutStopSec=15s
|
|
|
|
|
LimitNOFILE=1048576
|
|
|
|
|
PrivateTmp=true
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
2026-02-03 15:36:35 +03:00
|
|
|
StandardOutput=journal
|
|
|
|
|
StandardError=journal
|
|
|
|
|
SyslogIdentifier={{ caddy_my_name }}
|
2026-01-07 14:27:55 +03:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|