server_config/caddy/_deploy.sh

12 lines
228 B
Bash

# Setup caddy config
mkdir -p /etc/caddy
cp -R ./caddy/* /etc/caddy
# Setup caddy service
cp ./caddy/systemd/caddy.service /etc/systemd/system
# Start caddy
systemctl deamon-reload
systemctl enable caddy
systemctl start caddy