Skip to content

Instantly share code, notes, and snippets.

@kevholditch
Last active November 30, 2017 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevholditch/e7c7af9fea46af9690c6bd35abf0f5b2 to your computer and use it in GitHub Desktop.
Save kevholditch/e7c7af9fea46af9690c6bd35abf0f5b2 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/dumb-init /bin/bash
set -e
export DNS_ADDR=`cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2-`
envsubst '$DNS_ADDR' < /etc/nginx/nginx.template > /usr/local/openresty/nginx/conf/nginx.conf
/usr/local/openresty/bin/openresty -g "daemon off;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment