From c71d10830bf0eebe4edc8b77904a7b5d1c147b5a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 21 Aug 2025 13:01:56 +0200 Subject: [PATCH] Update healthchecks-install.sh --- install/healthchecks-install.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/install/healthchecks-install.sh b/install/healthchecks-install.sh index ab265b5c..fe1a95ba 100644 --- a/install/healthchecks-install.sh +++ b/install/healthchecks-install.sh @@ -18,7 +18,8 @@ $STD apt-get install -y \ gcc \ libpq-dev \ libcurl4-openssl-dev \ - libssl-dev + libssl-dev \ + caddy msg_ok "Installed Dependencies" setup_uv @@ -94,6 +95,18 @@ if not User.objects.filter(email="${ADMIN_EMAIL}").exists(): EOF msg_ok "Installed healthchecks" +msg_info "Configuring Caddy" +cat </etc/caddy/Caddyfile +{ + email admin@example.com +} + +${LOCAL_IP} { + reverse_proxy 127.0.0.1:8000 +} +EOF +msg_ok "Configured Caddy" + msg_info "Creating Service" cat </etc/systemd/system/healthchecks.service [Unit] @@ -108,7 +121,7 @@ Restart=always [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now healthchecks +systemctl enable -q --now healthchecks caddy msg_ok "Created Service" motd_ssh