Caddy is a powerful, extensible platform to serve your sites, services, and apps, written in Go.
Docs
Github
- Reverse Proxy and Automatic SSL for Free with Open Source Caddy!
- Self-hosted Server accessible over Internet - EASY with Caddy 2!
execute the shell commands inside the jail
you can download the bash script here and run it with
sh ./setup-caddy.sh
echo 'Updating repo'
pkg update
pkg upgrade
echo 'pkg install caddy'
pkg install caddy
# echo 'Caddy file location: /usr/local/etc/caddy'
echo 'Enable caddy in bash.rc file'
/etc/rc.conf >> echo 'caddy_enable="YES"'
echo 'Updating caddy to latest'
caddy upgrade
echo 'Stopping caddy to latest'
caddy stop
#Press enter to continue
echo 'Starting caddy'
caddy start
echo 'you can customize your caddy file here: /usr/local/etc/caddy
The caddy file will be located under: /usr/local/etc/caddy
and should be configured here.
To edit the caddy file, its recommended to use
vim
, asvi
is giving problems when navigating around in the file.
pkg update && pkg install vim