-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
608 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,147 @@ | ||
# Tenant Configuration | ||
####################################### | ||
# Server | ||
####################################### | ||
SERVER_HOST=0.0.0.0 | ||
SERVER_PORT=5000 | ||
SERVER_ADMIN_PORT=5001 | ||
SERVER_KEEP_ALIVE_TIMEOUT=61 | ||
SERVER_HEADERS_TIMEOUT=65 | ||
SERVER_REGION=region-of-where-your-service-is-running | ||
|
||
|
||
####################################### | ||
# Auth | ||
####################################### | ||
AUTH_JWT_SECRET=f023d3db-39dc-4ac9-87b2-b2be72e9162b | ||
AUTH_JWT_ALGORITHM=HS256 | ||
AUTH_ENCRYPTION_KEY=encryptionkey | ||
|
||
|
||
####################################### | ||
# Single Tenant | ||
####################################### | ||
TENANT_ID=bjhaohmqunupljrqypxz | ||
ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxMzUzMTk4NSwiZXhwIjoxOTI5MTA3OTg1fQ.mqfi__KnQB4v6PkIjkhzfwWrYyF94MEbSC6LnuvVniE | ||
SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjEzNTMxOTg1LCJleHAiOjE5MjkxMDc5ODV9.th84OKK0Iz8QchDyXZRrojmKSEZ-OuitQm_5DvLiSIc | ||
TENANT_ID=bjhaohmqunupljrqypxz | ||
PGRST_JWT_SECRET=f023d3db-39dc-4ac9-87b2-b2be72e9162b | ||
|
||
# Database configuration | ||
|
||
####################################### | ||
# Multi Tenancy | ||
# uncomment MULTI_TENANT=true to enable multi tenancy | ||
# the [Single Tenant] configurations will be ignored | ||
####################################### | ||
# MULTI_TENANT=true | ||
DATABASE_MULTITENANT_URL=postgresql://postgres:[email protected]:5433/postgres | ||
REQUEST_X_FORWARDED_HOST_REGEXP= | ||
ADMIN_API_KEYS=apikey | ||
|
||
|
||
####################################### | ||
# Database | ||
####################################### | ||
DATABASE_URL=postgresql://postgres:[email protected]/postgres | ||
DATABASE_POOL_URL=postgresql://postgres:[email protected]:6453/postgres | ||
DATABASE_CONNECTION_TIMEOUT=3000 | ||
DATABASE_SEARCH_PATH= | ||
|
||
## When DATABASE_POOL_URL is SET the following params are ignored | ||
DATABASE_MAX_CONNECTIONS=20 | ||
DATABASE_FREE_POOL_AFTER_INACTIVITY=60000 | ||
|
||
####################################### | ||
# Database - Migrations | ||
####################################### | ||
DB_INSTALL_ROLES=true | ||
DB_ANON_ROLE=anon | ||
DB_SERVICE_ROLE=service_role | ||
DB_AUTHENTICATED_ROLE=authenticated | ||
DB_SUPER_USER=postgres | ||
DB_ALLOW_MIGRATION_REFRESH=true | ||
|
||
# Upload configuration | ||
FILE_SIZE_LIMIT=52428800 | ||
|
||
# Storage | ||
####################################### | ||
# Uploads | ||
####################################### | ||
UPLOAD_FILE_SIZE_LIMIT=524288000 | ||
UPLOAD_FILE_SIZE_LIMIT_STANDARD=52428800 | ||
UPLOAD_SIGNED_URL_EXPIRATION_TIME=60 | ||
|
||
TUS_URL_PATH=/upload/resumable | ||
TUS_URL_EXPIRY_MS=3600000 | ||
|
||
|
||
####################################### | ||
# Storage Backend Driver | ||
# values: s3 | file | ||
####################################### | ||
STORAGE_BACKEND=s3 | ||
GLOBAL_S3_BUCKET=name-of-your-s3-bucket | ||
|
||
# S3 Configuration | ||
REGION=region-of-your-s3-bucket | ||
GLOBAL_S3_ENDPOINT=http://127.0.0.1:9000 | ||
GLOBAL_S3_PROTOCOL=http | ||
####################################### | ||
# S3 Backend | ||
####################################### | ||
STORAGE_S3_BUCKET=name-of-your-s3-bucket | ||
STORAGE_S3_MAX_SOCKETS=200 | ||
STORAGE_S3_ENDPOINT=http://127.0.0.1:9000 | ||
STORAGE_S3_FORCE_PATH_STYLE=true | ||
STORAGE_S3_REGION=us-east-1 | ||
|
||
# Minio Configuration (if using Minio) | ||
GLOBAL_S3_FORCE_PATH_STYLE=true | ||
AWS_ACCESS_KEY_ID=supa-storage | ||
AWS_SECRET_ACCESS_KEY=secret1234 | ||
AWS_DEFAULT_REGION=ap-southeast-1 | ||
|
||
# Local File Storage Configuration | ||
FILE_STORAGE_BACKEND_PATH=./data | ||
|
||
# Multitenant | ||
IS_MULTITENANT=false | ||
MULTITENANT_DATABASE_URL=postgresql://postgres:[email protected]:5433/postgres | ||
X_FORWARDED_HOST_REGEXP= | ||
ADMIN_API_KEYS=apikey | ||
ENCRYPTION_KEY=encryptionkey | ||
####################################### | ||
# File Backend | ||
####################################### | ||
STORAGE_FILE_BACKEND_PATH=./data | ||
|
||
# Logs | ||
LOGFLARE_ENABLED=false | ||
LOGFLARE_API_KEY=api_key | ||
LOGFLARE_SOURCE_TOKEN=source_token | ||
|
||
####################################### | ||
# Image Transformation | ||
ENABLE_IMAGE_TRANSFORMATION=true | ||
####################################### | ||
IMAGE_TRANSFORMATION_ENABLED=true | ||
IMAGE_TRANSFORMATION_LIMIT_MIN_SIZE=0 | ||
IMAGE_TRANSFORMATION_LIMIT_MAX_SIZE=2000 | ||
|
||
IMGPROXY_URL=http://localhost:50020 | ||
IMGPROXY_REQUEST_TIMEOUT=15 | ||
IMGPROXY_HTTP_MAX_SOCKETS=500 | ||
|
||
####################################### | ||
# Image Transformation - Rate Limiter | ||
# values: redis | memory | ||
####################################### | ||
RATE_LIMITER_ENABLED=false | ||
RATE_LIMITER_DRIVER=redis | ||
RATE_LIMITER_REDIS_URL=localhost:6379 | ||
RATE_LIMITER_REDIS_CONNECT_TIMEOUT=5 | ||
RATE_LIMITER_RENDER_PATH_MAX_REQ_SEC=5 | ||
RATE_LIMITER_REDIS_COMMAND_TIMEOUT=2 | ||
|
||
|
||
####################################### | ||
# Queue | ||
# When PG_QUEUE_CONNECTION_URL is not SET it will use the DATABASE_URL | ||
# or DB | ||
####################################### | ||
PG_QUEUE_ENABLE=false | ||
PG_QUEUE_DELETE_AFTER_DAYS=2 | ||
PG_QUEUE_ARCHIVE_COMPLETED_AFTER_SECONDS=7200 | ||
PG_QUEUE_RETENTION_DAYS=2 | ||
PG_QUEUE_CONNECTION_URL= | ||
|
||
|
||
####################################### | ||
# Webhooks | ||
####################################### | ||
WEBHOOK_URL= | ||
ENABLE_QUEUE_EVENTS=false | ||
WEBHOOK_API_KEY= | ||
|
||
# Rate Limiter | ||
ENABLE_RATE_LIMITER=true | ||
RATE_LIMITER_DRIVER=redis | ||
RATE_LIMITER_REDIS_URL=localhost:6379 | ||
|
||
####################################### | ||
# Monitoring | ||
####################################### | ||
DEFAULT_METRICS_ENABLED=true | ||
LOG_LEVEL=info | ||
|
||
LOGFLARE_ENABLED=false | ||
LOGFLARE_API_KEY=api_key | ||
LOGFLARE_SOURCE_TOKEN=source_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.