Skip to content

Commit

Permalink
Correct the .htpasswd relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
cvuiller authored and boogheta committed Mar 2, 2022
1 parent 732b0bc commit 2858a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyphe_frontend/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ chmod -R 550 /frontend/app && chown -R nginx:nginx /frontend/app
envsubst '\$NS \$BACKEND_HOST \$BACKEND_PORT' < /etc/nginx/conf.d/docker-nginx-vhost.template > /etc/nginx/conf.d/default.conf

[[ ! -z "${HYPHE_HTPASSWORD_USER}" ]] && [[ ! -z "${HYPHE_HTPASSWORD_PASS}" ]] &&
printf "${HYPHE_HTPASSWORD_USER}:${HYPHE_HTPASSWORD_PASS}\n" > .htpasswd &&
printf "${HYPHE_HTPASSWORD_USER}:${HYPHE_HTPASSWORD_PASS}\n" > /frontend/.htpasswd &&
sed -r --in-place 's|( location / \{)|\1\n auth_basic Restricted;\n auth_basic_user_file /frontend/.htpasswd;|' /etc/nginx/conf.d/default.conf

exec "$@"

0 comments on commit 2858a3e

Please sign in to comment.