marcklingen commited on
Commit
0a0cfc9
1 Parent(s): b360b37

Disable username/password to enforce authentication via HF

Browse files

Optional, could be helpful when run within HF

What do you think?

Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +3 -0
docker-entrypoint-wrapper.sh CHANGED
@@ -62,6 +62,9 @@ export AUTH_CUSTOM_ISSUER=$OPENID_PROVIDER_URL
62
  export AUTH_CUSTOM_SCOPE=$OAUTH_SCOPES
63
  export AUTH_CUSTOM_NAME="Hugging Face"
64
 
 
 
 
65
  # Start Next.js in the background
66
  echo "Starting Next.js..."
67
  ./web/entrypoint.sh node ./web/server.js \
 
62
  export AUTH_CUSTOM_SCOPE=$OAUTH_SCOPES
63
  export AUTH_CUSTOM_NAME="Hugging Face"
64
 
65
+ # Disable authentication via username/password to enforce authentication via HF
66
+ export AUTH_DISABLE_USERNAME_PASSWORD="true"
67
+
68
  # Start Next.js in the background
69
  echo "Starting Next.js..."
70
  ./web/entrypoint.sh node ./web/server.js \