Builds caddy with the specified plugins from plugins.txt
.
If you want to support caddy, consider buying a license or sponsoring their project!
I am in no way associated or affiliated with the original project.
- go > 1.8
- git
- put url's to the wanted plugin repos in
plugins.txt
. THE FILE MUST END WITH AN EMPTY LINE - edit the line
CADDY_VERSION="v0.10.9"
to your wanted version (git tag) inbuild.sh
- execute
./build.sh
- the built caddy binary resides in
./build
-
execute
sudo setcap "cap_net_bind_service=+ep" /opt/caddy/caddy
on the target system to make caddy executable by non-root users -
execute
adduser --disabled-password --disabled-login caddy
(on debian and friends) to create a non-root user for caddy -
i use this systemd unit file to run caddy
[Unit] Description=Caddy HTTP/2 web server Documentation=https://caddyserver.com/docs After=network.target [Service] User=caddy Group=caddy LimitNOFILE=8192 Environment=STNORESTART=yes ExecStart=/opt/caddy/caddy -agree=true -conf=/etc/caddy ExecReload=/bin/kill -USR1 $MAINPID Restart=on-failure [Install] WantedBy=multi-user.target