Info: LibreChat file upload is working with Google Cloud Storage #8888
martinounap
started this conversation in
General
Replies: 1 comment
-
Thank you for the detailed steps. You rock! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Steps
Create cors.json:
[
{
"origin": ["$LIBRECAHT_URL"],
"method": ["GET", "POST"],
"responseHeader": ["Content-Type"],
"maxAgeSeconds": 3600
}
]
Now run google cloud cli command ($GS_UTIL you can find from bucket configuration "gsutil URI")
gcloud storage buckets update $GS_UTIL --cors-file=cors.json
Configure LibreChat ENV variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY from HMAC step; $BUCKET_NAME is your bucket name what you created)
AWS_ENDPOINT_URL=https://storage.googleapis.com
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=auto
AWS_BUCKET_NAME=$BUCKET_NAME
Add to LibreChat configuration yaml:
...
fileStrategy: "s3"
...
Beta Was this translation helpful? Give feedback.
All reactions