Remove hardcoded IPs from derstandard and forgejo scripts, use DNS

This commit is contained in:
Agent 2026-02-03 21:48:07 +00:00
parent 01aec23f1f
commit 1eac52a97c
2 changed files with 2 additions and 5 deletions

View file

@ -3,11 +3,9 @@
set -e
FORGEJO_URL="https://git.cloonar.com"
FORGEJO_IP="10.42.97.55"
TOKEN="03e35afac87cd3d8db7d4a186714dacf584c01f7"
# Resolve git.cloonar.com to internal IP
CURL="curl -sk --resolve git.cloonar.com:443:${FORGEJO_IP} -H \"Authorization: token ${TOKEN}\""
CURL="curl -sk -H \"Authorization: token ${TOKEN}\""
usage() {
cat <<EOF