🐳 caddy-script
Caddy installation script
⚠️ This script installs Caddy v2, if you are looking for v1 please follow this link.
Features
- Install Caddy v2.2.0
- Install PHP 7.4
- Install MariaDB
- Register Caddy as a service with systemd
- Configure Caddyfile with file_server, gzip, zstd, php_fastcgi
- Install WordPress [optional]
Tested on
- Ubuntu 18.04
- Ubuntu 20.04
Usage
bash <(curl -s https://raw.githubusercontent.com/vintagesucks/caddy-script/v2/main.sh)
You'll be asked for your timezone, an email and the domain/ip to use.
Help
You can read the Caddy Documentation if you need more information about Caddy.
Acknowledgements
- Validating an IP Address in a Bash Script by Mitch Frazier
Contributors
Thanks goes to these wonderful people (emoji key):
Nikolas Evers |
Per Søderlind |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!