Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.29 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.29 KB

Caddy

Caddy is a powerful, extensible platform to serve your sites, services, and apps, written in Go.
Docs
Github

Reverse proxy

Installing Caddy in a Jail

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, as vi is giving problems when navigating around in the file.

pkg update && pkg install vim