Skip to content

Commit ffad357

Browse files
committed
Forbid combining ENABLE_BATCH with BASIC_AUTH_RAW/ALLOW_LIST
1 parent 0de63f0 commit ffad357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/webserver/authentication.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
2+
if [ "$ENABLE_BATCH" = True ] && [ "$BASIC_AUTH_RAW$ALLOW_LIST" != "" ]; then
3+
echo "ENABLE_BATCH must not be combined with BASIC_AUTH_RAW or ALLOW_LIST"
4+
fi
5+
26
# enable basic auth when user/password is configured
37
if [ ! "$BASIC_AUTH_RAW" = "" ];then
48
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

0 commit comments

Comments
 (0)