--- id: config slug: /config title: Configuration toc_max_heading_level: 3 --- A sample `.env` file is located in the [storage repository](https://github.com/supabase/storage-api/blob/master/.env.sample). Use this file to configure your environment variables for your Storage server. ## General {#general} ### `ANON_KEY` {#ANON_KEY} A long-lived JWT with anonymous Postgres privileges.
### `SERVICE_KEY` {#SERVICE_KEY} A long-lived JWT with Postgres privileges to bypass Row Level Security.
### `TENANT_ID` {#TENANT_ID} The ID of a Storage tenant.
### `REGION` {#REGION} Region of your S3 bucket.
### `GLOBAL_S3_BUCKET` {#GLOBAL_S3_BUCKET} Name of your S3 bucket.
### `POSTGREST_URL` {#POSTGREST_URL} The URL of your PostgREST server.
### `PGRST_JWT_SECRET` {#PGRST_JWT_SECRET} A JWT Secret for the PostgREST database.
### `DATABASE_URL` {#DATABASE_URL} The URL of your Postgres database.
### `PGOPTIONS` {#PGOPTIONS} Additional configuration parameters for Postgres startup.
### `FILE_SIZE_LIMIT` {#FILE_SIZE_LIMIT} The maximum file size allowed.
### `STORAGE_BACKEND` {#STORAGE_BACKEND} The storage provider.
### `FILE_STORAGE_BACKEND_PATH` {#FILE_STORAGE_BACKEND_PATH} The location storage when the "STORAGE_BACKEND" is set to "file".
## Multi-tenant {#multitenant} ### `IS_MULTITENANT` {#IS_MULTITENANT} Operate across multiple tenants.
### `MULTITENANT_DATABASE_URL` {#MULTITENANT_DATABASE_URL} The URL of the multitenant Postgres database.
### `X_FORWARDED_HOST_REGEXP` {#X_FORWARDED_HOST_REGEXP} TBD.
### `POSTGREST_URL_SUFFIX` {#POSTGREST_URL_SUFFIX} The suffix for the PostgREST instance.
### `ADMIN_API_KEYS` {#ADMIN_API_KEYS} Secure API key for administrative endpoints.
### `ENCRYPTION_KEY` {#ENCRYPTION_KEY} An key for encryting/decrypting secrets.