Skip to content

Commit

Permalink
[DOC] removed some debug outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dameyerdave committed Jun 11, 2024
1 parent 00576aa commit 21ad479
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,15 @@ EOF
echo "### Upstream for ${domain}: ${target} --> ${upstream_to}"
targets[$target]="${targets[$target]} ${upstream_to}"
done
echo "### TARGET: ${!targets[@]}"
for target in "${!targets[@]}"
do
echo "upstream ${target} {" | tee -a ${upstream_config}
echo "upstream ${target} {" >> ${upstream_config}
for _upstream in ${targets[$target]}
do
echo " server ${_upstream} max_fails=3 fail_timeout=10s;" | tee -a ${upstream_config}
echo " keepalive 32;" | tee -a ${upstream_config}
echo " server ${_upstream} max_fails=3 fail_timeout=10s;" >> ${upstream_config}
echo " keepalive 32;" >> ${upstream_config}
done
echo "}" | tee -a ${upstream_config}
echo "}" >> ${upstream_config}
done
else
touch ${upstream_config}
Expand Down

0 comments on commit 21ad479

Please sign in to comment.