Skip to content

Commit

Permalink
Merge pull request #204 from RicardoJeronimo/docker
Browse files Browse the repository at this point in the history
Docker entrypoint-frontend.sh bugfixes and optimizations
  • Loading branch information
mikonse authored Feb 1, 2024
2 parents ea66dd7 + b530fbe commit d07ab6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/entrypoint-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

CONF="/etc/nginx/conf.d/default.conf"

[[ ! -z "${ABRECHNUNG_API__HOST}" ]] && sed -i "s/api:/${ABRECHNUNG_API__HOST}:/g" "$CONF"
[[ ! -z "${ABRECHNUNG_API__PORT}" ]] && sed -i "s/:8080/:${ABRECHNUNG_API__PORT}/g" "$CONF"
[[ ! -f "/proc/net/if_inet6" ]] && sed -i "s/listen \[::\]/#listen \[::\]/g" "$CONF"
[ -n "${ABRECHNUNG_API__HOST}" ] && sed -i "s/ api:/ ${ABRECHNUNG_API__HOST}:/g" "$CONF"
[ -n "${ABRECHNUNG_API__PORT}" ] && sed -i "s/:8080;/:${ABRECHNUNG_API__PORT};/g" "$CONF"
[ ! -f "/proc/net/if_inet6" ] && sed -i "s/ listen \[::\]/ #listen \[::\]/g" "$CONF"

0 comments on commit d07ab6c

Please sign in to comment.