Teable
Configuration
Environment Variables
Here are all available environment variables in Teable and their explanations
Environment Variable | Description | Default Value | Required | Example |
---|---|---|---|---|
Core Configuration | ||||
PUBLIC_ORIGIN | Public origin for generating complete URLs, must be set to your app’s access address | - | Yes | https://app.teable.io |
SECRET_KEY | Key for JWT, sessions, and sharing, use a strong password | defaultSecretKey | Yes | yourStrongSecretKey |
PORT | Port on which the application runs | 3000 | - | 3000 |
LOG_LEVEL | Log level, options: fatal, error, warn, info, debug, trace | info | - | debug |
NEXT_ENV_IMAGES_ALL_REMOTE | Whether to allow loading third-party images | false | - | true |
Storage Configuration | ||||
BACKEND_STORAGE_PROVIDER | Storage provider, options: local, minio, s3 | local | - | s3 |
BACKEND_STORAGE_S3_REGION | S3 storage region, required when BACKEND_STORAGE_PROVIDER is s3 | - | - | us-east-2 |
BACKEND_STORAGE_S3_ENDPOINT | S3 storage endpoint, required when BACKEND_STORAGE_PROVIDER is s3 | - | - | https://s3.us-east-2.amazonaws.com |
BACKEND_STORAGE_S3_ACCESS_KEY | S3 storage access key, required when BACKEND_STORAGE_PROVIDER is s3 | - | - | your_access_key |
BACKEND_STORAGE_S3_SECRET_KEY | S3 storage secret key, required when BACKEND_STORAGE_PROVIDER is s3 | - | - | your_secret_key |
BACKEND_STORAGE_MINIO_ENDPOINT | MinIO storage endpoint | - | - | minio.example.com |
BACKEND_STORAGE_MINIO_ACCESS_KEY | MinIO access key | - | - | access-key |
BACKEND_STORAGE_MINIO_SECRET_KEY | MinIO secret key | - | - | secret-key |
STORAGE_PREFIX | Storage prefix, defaults to PUBLIC_ORIGIN | PUBLIC_ORIGIN | - | http://localhost:3000 |
Cache Configuration | ||||
BACKEND_CACHE_PROVIDER | Cache provider, options: sqlite, memory, redis | memory | - | redis |
BACKEND_CACHE_REDIS_URI | Redis cache connection URI, required when BACKEND_CACHE_PROVIDER is redis | - | - | redis://default:teable@127.0.0.1:6379/0 |
Authentication Configuration | ||||
SOCIAL_AUTH_PROVIDERS | List of social auth providers, comma-separated | - | - | github,google,oidc |
BACKEND_GITHUB_CLIENT_ID | GitHub OAuth client ID | - | - | github_client_id |
BACKEND_GITHUB_CLIENT_SECRET | GitHub OAuth client secret | - | - | github_client_secret |
BACKEND_GOOGLE_CLIENT_ID | Google OAuth client ID | - | - | google_client_id |
BACKEND_GOOGLE_CLIENT_SECRET | Google OAuth client secret | - | - | google_client_secret |
BACKEND_OIDC_CLIENT_ID | OIDC client ID | - | - | google_client_id |
BACKEND_OIDC_CLIENT_SECRET | OIDC client secret | - | - | google_client_secret |
BACKEND_OIDC_CALLBACK_URL | OIDC callback URL | - | - | https://app.teable.io/api/auth/oidc/callback |
Email Configuration | ||||
BACKEND_MAIL_HOST | Email server host | - | - | smtp.gmail.com |
BACKEND_MAIL_PORT | Email server port | - | - | 465 |
BACKEND_MAIL_AUTH_USER | Email server authentication username | - | - | username |
BACKEND_MAIL_AUTH_PASS | Email server authentication password | - | - | usertoken |
Session/JWT Configuration | ||||
BACKEND_SESSION_EXPIRES_IN | Session expiration time | 7d | - | 7d |
BACKEND_JWT_EXPIRES_IN | JWT expiration time | 20d | - | 20d |
BACKEND_RESET_PASSWORD_EMAIL_EXPIRES_IN | Reset password email expiration time | 30m | - | 30m |
Resource Limits | ||||
MAX_COPY_CELLS | Maximum number of cells to copy in a single request | - | - | 50000 |
MAX_READ_ROWS | Maximum number of rows to read in a single request | - | - | 10000 |
MAX_ATTACHMENT_UPLOAD_SIZE | Maximum attachment upload size (bytes) | - | - | 2147483648 |
Feature Toggles | ||||
RECORD_HISTORY_DISABLED | Whether to disable record history, defaults to false | false | - | true |
PASSWORD_LOGIN_DISABLED | Whether to disable password login (OAuth and OIDC still available) | false | - | true |
Analytics & Monitoring | ||||
MICROSOFT_CLARITY_ID | Microsoft Clarity metrics ID, for enabling Microsoft Clarity analytics | - | - | your-metrics-id |
OTEL_EXPORTER_OTLP_ENDPOINT | OpenTelemetry OTLP endpoint | - | - | http://jaeger:4317 |
Template Configuration | ||||
TEMPLATE_SPACE_ID | Space ID where template bases are located, for template center operations | - | - | your-template-space-id |
TEMPLATE_SITE_LINK | Template site link, required to enable create-from-template functionality | - | - | https://template.teable.io |
Database Configuration | ||||
PRISMA_DATABASE_URL | Database connection URL, must be configured | - | Yes | postgresql://teable:teable@127.0.0.1:5432/teable |