move ip retrieval call

This commit is contained in:
Tom Frenzel 2026-01-03 17:41:49 +01:00
parent a5f8709fb7
commit 2bd92fb05a
No known key found for this signature in database
GPG Key ID: 02BEE95E635A32FC

View File

@ -19,6 +19,7 @@ msg_ok "Installed Dependencies"
NODE_VERSION="22" setup_nodejs NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "kutt" "thedevs-network/kutt" "tarball" fetch_and_deploy_gh_release "kutt" "thedevs-network/kutt" "tarball"
import_local_ip
msg_info "Configuring Kutt" msg_info "Configuring Kutt"
cd /opt/kutt cd /opt/kutt
@ -29,7 +30,6 @@ $STD npm run migrate
msg_ok "Configured Kutt" msg_ok "Configured Kutt"
msg_info "Configuring SSL" msg_info "Configuring SSL"
import_local_ip
cat <<EOF >/etc/caddy/Caddyfile cat <<EOF >/etc/caddy/Caddyfile
$LOCAL_IP { $LOCAL_IP {
reverse_proxy localhost:3000 reverse_proxy localhost:3000