server_config/caddy/_deploy.sh

14 lines
289 B
Bash
Raw Normal View History

# Setup caddy config
2024-05-30 13:12:07 +02:00
mkdir -p /etc/caddy
cp -a ./caddy/caddy/. /etc/caddy/
# Set directory owner
chown -R 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