set env var for AUTH_DISABLE_SIGNUP
Browse files
docker-entrypoint-wrapper.sh
CHANGED
@@ -68,6 +68,13 @@ export AUTH_CUSTOM_NAME="Hugging Face"
|
|
68 |
# Disable authentication via username/password to enforce authentication via HF
|
69 |
export AUTH_DISABLE_USERNAME_PASSWORD="true"
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
# Start Next.js in the background
|
72 |
echo "Starting Next.js..."
|
73 |
./web/entrypoint.sh node ./web/server.js \
|
|
|
68 |
# Disable authentication via username/password to enforce authentication via HF
|
69 |
export AUTH_DISABLE_USERNAME_PASSWORD="true"
|
70 |
|
71 |
+
# Pass through AUTH_DISABLE_SIGNUP value if set, default to false if not set
|
72 |
+
if [ -n "$AUTH_DISABLE_SIGNUP" ]; then
|
73 |
+
export AUTH_DISABLE_SIGNUP="$AUTH_DISABLE_SIGNUP"
|
74 |
+
else
|
75 |
+
export AUTH_DISABLE_SIGNUP="false"
|
76 |
+
fi
|
77 |
+
|
78 |
# Start Next.js in the background
|
79 |
echo "Starting Next.js..."
|
80 |
./web/entrypoint.sh node ./web/server.js \
|