server_config/caddy/_deploy.sh

12 lines
235 B
Bash

# Setup caddy config
mkdir -p /etc/caddy
cp -a ./caddy/caddy/. /etc/caddy/
# Setup caddy service
cp ./caddy/systemd/caddy.service /etc/systemd/system
# Start caddy
systemctl daemon-reload
systemctl enable caddy
systemctl start caddy