Remove hardcoded IPs from derstandard and forgejo scripts, use DNS
This commit is contained in:
parent
01aec23f1f
commit
1eac52a97c
2 changed files with 2 additions and 5 deletions
|
|
@ -3,10 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
FIVEFILTERS_URL="https://fivefilters.cloonar.com"
|
FIVEFILTERS_URL="https://fivefilters.cloonar.com"
|
||||||
FIVEFILTERS_IP="10.42.97.5"
|
|
||||||
RSS_SOURCE="https://www.derstandard.at/rss"
|
RSS_SOURCE="https://www.derstandard.at/rss"
|
||||||
|
|
||||||
CURL="curl -sk --resolve fivefilters.cloonar.com:443:${FIVEFILTERS_IP}"
|
CURL="curl -sk"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
FORGEJO_URL="https://git.cloonar.com"
|
FORGEJO_URL="https://git.cloonar.com"
|
||||||
FORGEJO_IP="10.42.97.55"
|
|
||||||
TOKEN="03e35afac87cd3d8db7d4a186714dacf584c01f7"
|
TOKEN="03e35afac87cd3d8db7d4a186714dacf584c01f7"
|
||||||
|
|
||||||
# Resolve git.cloonar.com to internal IP
|
CURL="curl -sk -H \"Authorization: token ${TOKEN}\""
|
||||||
CURL="curl -sk --resolve git.cloonar.com:443:${FORGEJO_IP} -H \"Authorization: token ${TOKEN}\""
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue