Skip to content

Commit

Permalink
Forbid combining ENABLE_BATCH with BASIC_AUTH_RAW/ALLOW_LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Mar 7, 2024
1 parent 0de63f0 commit ffad357
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/webserver/authentication.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
if [ "$ENABLE_BATCH" = True ] && [ "$BASIC_AUTH_RAW$ALLOW_LIST" != "" ]; then
echo "ENABLE_BATCH must not be combined with BASIC_AUTH_RAW or ALLOW_LIST"
fi

# enable basic auth when user/password is configured
if [ ! "$BASIC_AUTH_RAW" = "" ];then
echo 'auth_basic "Please enter your username and password";auth_basic_user_file /etc/nginx/htpasswd/basic_auth.htpasswd;' > /etc/nginx/conf.d/basic_auth.conf
Expand Down

0 comments on commit ffad357

Please sign in to comment.