# Enable S3 backend for filestoreOVERLEAF_FILESTORE_BACKEND=s3# Bucket name for template filesOVERLEAF_FILESTORE_TEMPLATE_FILES_BUCKET_NAME=overleaf-template-files# Key for filestore userOVERLEAF_FILESTORE_S3_ACCESS_KEY_ID=...# Secret for filestore userOVERLEAF_FILESTORE_S3_SECRET_ACCESS_KEY=...# Bucket region you picked when creating the buckets.OVERLEAF_FILESTORE_S3_REGION=""# Enable S3 backend for historyOVERLEAF_HISTORY_BACKEND=s3# Bucket name for project history blobsOVERLEAF_HISTORY_PROJECT_BLOBS_BUCKET=overleaf-project-blobs# Bucket name for history chunksOVERLEAF_HISTORY_CHUNKS_BUCKET=overleaf-chunks# Key for history userOVERLEAF_HISTORY_S3_ACCESS_KEY_ID=...# Secret for history userOVERLEAF_HISTORY_S3_SECRET_ACCESS_KEY=...# Bucket region you picked when creating the buckets.OVERLEAF_HISTORY_S3_REGION=""
使用自行託管方案時
# Enable S3 backend for filestoreOVERLEAF_FILESTORE_BACKEND=s3# Bucket name for template filesOVERLEAF_FILESTORE_TEMPLATE_FILES_BUCKET_NAME=overleaf-template-files# Key for filestore userOVERLEAF_FILESTORE_S3_ACCESS_KEY_ID=...# Secret for filestore userOVERLEAF_FILESTORE_S3_SECRET_ACCESS_KEY=...# S3 provider endpointOVERLEAF_FILESTORE_S3_ENDPOINT=http://10.10.10.10:9000# Path style addressing of buckets. Most likely you need to set this to "true".OVERLEAF_FILESTORE_S3_PATH_STYLE="true"# Bucket region. Most likely you do not need to configure this.OVERLEAF_FILESTORE_S3_REGION=""# Enable S3 backend for historyOVERLEAF_HISTORY_BACKEND=s3# Bucket name for project history blobsOVERLEAF_HISTORY_PROJECT_BLOBS_BUCKET=overleaf-project-blobs# Bucket name for history chunksOVERLEAF_HISTORY_CHUNKS_BUCKET=overleaf-chunks# Key for history userOVERLEAF_HISTORY_S3_ACCESS_KEY_ID=...# Secret for history userOVERLEAF_HISTORY_S3_SECRET_ACCESS_KEY=...# S3 provider endpointOVERLEAF_HISTORY_S3_ENDPOINT=http://10.10.10.10:9000# Path style addressing of buckets. Most likely you need to set this to "true".OVERLEAF_HISTORY_S3_PATH_STYLE="true"# Bucket region. Most likely you do not need to configure this.OVERLEAF_HISTORY_S3_REGION=""
mc alias set s3 http://10.10.10.10:9000 MINIO_ROOT_USER MINIO_ROOT_PASSWORD# Put the contents of the policies from the previous section in the# respective json file policy-filestore.json and policy-history.json.# Reminder: Replace the bucket names and credentials accordingly.# filestore buckets, user and policymc mb --ignore-existing s3/overleaf-template-filesmc admin user add s3 \ OVERLEAF_FILESTORE_S3_ACCESS_KEY_ID \ OVERLEAF_FILESTORE_S3_SECRET_ACCESS_KEYmc admin policy create s3 overleaf-filestore policy-filestore.jsonmc admin policy attach s3 overleaf-filestore \ --user=OVERLEAF_FILESTORE_S3_ACCESS_KEY_ID# history buckets, user and policymc mb --ignore-existing s3/overleaf-project-blobsmc mb --ignore-existing s3/overleaf-chunksmc admin user add s3 \ OVERLEAF_HISTORY_S3_ACCESS_KEY_ID \ OVERLEAF_HISTORY_S3_SECRET_ACCESS_KEYmc admin policy create s3 overleaf-history policy-history.jsonmc admin policy attach s3 overleaf-history \ --user=OVERLEAF_HISTORY_S3_ACCESS_KEY_ID