Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions supabase/code/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,19 @@ ENABLE_PHONE_AUTOCONFIRM=true
# S3 bucket when using S3 backend, directory name when using 'file'
GLOBAL_S3_BUCKET=stub

# Storage backend: 'file' (local disk, default) or 's3' (any S3-compatible
# service). The four settings below are only read when STORAGE_BACKEND=s3.
STORAGE_BACKEND=file
GLOBAL_S3_ENDPOINT=
GLOBAL_S3_PROTOCOL=https
GLOBAL_S3_FORCE_PATH_STYLE=true
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

# Cloudflare R2 does not implement x-amz-tagging: set this to "false" there,
# or resumable (TUS) uploads fail with HTTP 500.
TUS_ALLOW_S3_TAGS=true

# Used for S3 protocol endpoint configuration
REGION=stub

Expand Down
20 changes: 12 additions & 8 deletions supabase/code/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,19 @@ services:
STORAGE_PUBLIC_URL: ${SUPABASE_PUBLIC_URL}
REQUEST_ALLOW_X_FORWARDED_PATH: "true"
FILE_SIZE_LIMIT: 52428800
STORAGE_BACKEND: file
STORAGE_BACKEND: ${STORAGE_BACKEND:-file}
# S3 bucket when using S3 backend, directory name when using 'file'
GLOBAL_S3_BUCKET: ${GLOBAL_S3_BUCKET}
# S3 Backend configuration
#GLOBAL_S3_ENDPOINT: https://your-s3-endpoint
#GLOBAL_S3_PROTOCOL: https
#GLOBAL_S3_FORCE_PATH_STYLE: "true"
#AWS_ACCESS_KEY_ID: your-access-key-id
#AWS_SECRET_ACCESS_KEY: your-secret-access-key
# S3 backend configuration. Only read when STORAGE_BACKEND=s3, so these
# stay inert on the default 'file' backend.
GLOBAL_S3_ENDPOINT: ${GLOBAL_S3_ENDPOINT}
GLOBAL_S3_PROTOCOL: ${GLOBAL_S3_PROTOCOL:-https}
GLOBAL_S3_FORCE_PATH_STYLE: ${GLOBAL_S3_FORCE_PATH_STYLE:-true}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
# Cloudflare R2 does not implement x-amz-tagging: set this to "false"
# there, or resumable (TUS) uploads fail with HTTP 500.
TUS_ALLOW_S3_TAGS: ${TUS_ALLOW_S3_TAGS:-true}
FILE_STORAGE_BACKEND_PATH: /var/lib/storage
TENANT_ID: ${STORAGE_TENANT_ID}
# TODO: https://github.com/supabase/storage-api/issues/55
Expand Down Expand Up @@ -458,7 +462,7 @@ services:
# Comment out everything below this point if you are using an external Postgres database
db:
# To upgrade an existing Postgres 15 database in place, see utils/upgrade-pg17.sh.
image: supabase/postgres:17.6.1.136
image: supabase/postgres:17.6.1.150
restart: unless-stopped
volumes:
- ./volumes/db/realtime.sql:/docker-entrypoint-initdb.d/migrations/99-realtime.sql:Z
Expand Down