Skip to content

Commit

Permalink
In which our hero uses fancy braces expansion to remove port specific…
Browse files Browse the repository at this point in the history
…ation from the SERVER variable used for certbot bootstrap.

Signed-off-by: Jesse Bowling <[email protected]>
  • Loading branch information
Jesse Bowling committed Jun 14, 2019
1 parent 57fcb94 commit e4a8228
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nginx.run
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ trap "exit 143" SIGTERM
PIDFILE=/var/run/nginx.pid
SERVER_BASE_URL=${SERVER_BASE_URL:-http://$(curl http://httpbin.org/ip | jq -r .origin)}
SERVER=$(echo ${SERVER_BASE_URL} | awk -F/ '{print $3}')
SERVER="${SERVER%%:*}"

# Should we be doing this this way?
# What should we do to cleanup in a container?
Expand Down

0 comments on commit e4a8228

Please sign in to comment.