-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
59 lines (51 loc) · 2.37 KB
/
.env.example
File metadata and controls
59 lines (51 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
PORT=4000
TURBO_TOKENS=your-turbo-token, # required in legacy mode, should be use to authenticate from turbo-cli
STORAGE_PROVIDER=file # s3, azure, gcs, file, memory
## Shared
# used by all providers in cloud mode (s3, azure, gcs) it is the bucket/container name, in file mode it is the path to the cache directory inside FILE_CACHE_PATH folder
BUCKET_NAME=your-buket-name # required
## File Storage
FS_PATH=/tmp/file-cache
## Platform Mode (Multi-Tenant)
DATABASE_URL=postgres://turbo:turbo_dev_password@localhost:5432/turbo_cache
JWT_SECRET=change-this-to-a-secure-secret
# JWT_ACCESS_EXPIRY_SECS=900 # 15 minutes (default)
# JWT_REFRESH_EXPIRY_SECS=604800 # 7 days (default)
LEGACY_TOKENS_ENABLED=true
SUPER_ADMIN_PASSWORD=changeme123
ALLOW_REGISTRATION=true
REQUIRE_EMAIL_VERIFICATION=false
# DB_MAX_CONNECTIONS=10
# DB_MIN_CONNECTIONS=2
## SMTP Email (uses MailPit in dev — docker compose up -d mailpit)
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_TLS=none
APP_URL=http://localhost:4000
## CORS (comma-separated origins; defaults to APP_URL if not set)
# ALLOWED_ORIGINS=http://localhost:4000,http://localhost:5173
## AWS S3
# AWS_ACCESS_KEY_ID -> access_key_id
# AWS_SECRET_ACCESS_KEY -> secret_access_key
# AWS_DEFAULT_REGION -> region
# AWS_ENDPOINT -> endpoint
# AWS_SESSION_TOKEN -> token
# AWS_CONTAINER_CREDENTIALS_RELATIVE_URI -> https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html
# AWS_ALLOW_HTTP -> set to "true" to permit HTTP connections without TLS
# AWS_PROFILE -> set profile name, requires aws_profile feature enabled
## Azure Blob Storage
# AZURE_STORAGE_ACCOUNT_NAME: storage account name
# AZURE_STORAGE_ACCOUNT_KEY: storage account master key
# AZURE_STORAGE_ACCESS_KEY: alias for AZURE_STORAGE_ACCOUNT_KEY
# AZURE_STORAGE_CLIENT_ID -> client id for service principal authorization
# AZURE_STORAGE_CLIENT_SECRET -> client secret for service principal authorization
# AZURE_STORAGE_TENANT_ID -> tenant id used in oauth flows
## Google Cloud Storage
# GOOGLE_SERVICE_ACCOUNT: location of service account file
# GOOGLE_SERVICE_ACCOUNT_PATH: (alias) location of service account file
# SERVICE_ACCOUNT: (alias) location of service account file
# GOOGLE_SERVICE_ACCOUNT_KEY: JSON serialized service account key
# GOOGLE_BUCKET: bucket name
# GOOGLE_BUCKET_NAME: (alias) bucket name