2024-05-29 13:11:22 +02:00
|
|
|
# Setup caddy config
|
2024-05-30 13:12:07 +02:00
|
|
|
mkdir -p /etc/caddy
|
2024-06-05 18:39:47 +02:00
|
|
|
cp -a ./caddy/caddy/. /etc/caddy/
|
2024-07-17 16:18:12 +02:00
|
|
|
# Set directory owner
|
|
|
|
chown -R caddy:caddy /etc/caddy
|
2024-05-29 13:11:22 +02:00
|
|
|
|
|
|
|
# Setup caddy service
|
|
|
|
cp ./caddy/systemd/caddy.service /etc/systemd/system
|
|
|
|
|
|
|
|
# Start caddy
|
2024-05-30 13:43:29 +02:00
|
|
|
systemctl daemon-reload
|
2024-05-29 13:51:35 +02:00
|
|
|
systemctl enable caddy
|
2024-05-29 14:01:52 +02:00
|
|
|
systemctl start caddy
|