My Caddy configuration
- Python 100%
| shared | ||
| sites | ||
| utils | ||
| .gitignore | ||
| Caddyfile | ||
| LICENSE | ||
| README.md | ||
Caddyfiles
All caddyfiles that power my web server.
Deploying
A custom caddy build is required:
xcaddy build --with github.com/caddy-dns/porkbun
A caddy.service override is also required:
# /etc/systemd/system/caddy.service.d/override.conf
[Service]
EnvironmentFile=-/etc/caddy/.env
The config is very large and will take a few seconds to reload.
Not HA ready! (yet).
Environment variables
In /etc/caddy/.env:
PORKBUN_API_KEY=...- required for DNS-01 challenges (wildcard certs)PORKBUN_SECRET_KEY=...- required for DNS-01 challenges (wildcard certs)
Regenerating dynamic configs
Some shared config is dynamic, such as IP-based blocklists. Refer to each script in utils/.
Updating
This repo is the ENTIRE caddy configuration, including the root Caddyfile. Just git pull and
caddy reload.