server_config/caddy/_deploy.sh

12 lines
231 B
Bash

# Setup caddy config
mkdir -p /etc/caddy
cp ./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