forked from cohabit/server_config
14 lines
289 B
Bash
14 lines
289 B
Bash
# Setup caddy config
|
|
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
|