blob: c9c6c436ca319a3c7f82134f47b7289ee5cc62a9 [file] [log] [blame]
#!/bin/sh
# Source: https://gist.github.com/laurentbel/c4c7696890fc71c8061172a932eb52e4
envsubst < nginx-basic-auth.conf > /etc/nginx/conf.d/default.conf
htpasswd -c -b /etc/nginx/.htpasswd "${BASIC_USERNAME}" "${BASIC_PASSWORD}"
exec nginx -g "daemon off;"