-
Notifications
You must be signed in to change notification settings - Fork 46
Environment variables
Steve Lebleu edited this page Apr 21, 2021
·
3 revisions
Key | Description | Type | Default | Required |
---|---|---|---|---|
ACCESS_TOKEN_SECRET | Access token pass phrase | string | / | true |
ACCESS_TOKEN_DURATION | Access token duration in minutes | number | 120960 | false |
API_VERSION | Current version of your API | string | v1 | false |
AUTHORIZED | Allowed client hosts | string | / | true |
CDN | Content Delivery Network URL | string | / | false |
CONTENT_TYPE | Supported Content-Type | string | application/json | false |
DOMAIN | API domain | string | localhost | true |
FACEBOOK_CONSUMER_ID | Facebook app ID | string | / | false |
FACEBOOK_CONSUMER_SECRET | Facebook app secret | string | / | false |
GITHUB_CONSUMER_ID | Github app ID | string | / | false |
GITHUB_CONSUMER_SECRET | Github app secret | string | / | false |
GOOGLE_CONSUMER_ID | Google app ID | string | / | false |
GOOGLE_CONSUMER_SECRET | Google app secret | string | / | false |
LINKEDIN_CONSUMER_ID | Linkedin app ID | string | / | false |
LINKEDIN_CONSUMER_SECRET | Linkedin app secret | string | / | false |
LOGS_PATH | Logs directory path | string | logs | false |
LOGS_TOKEN | Morgan logs format | string | dev | false |
MEMORY_CACHE | Memory cache activated | boolean | 0 | false |
MEMORY_CACHE_DURATION | Cache lifetime duration (ms) | number | 5000 | false |
PORT | Listened application port | number | / | true |
REFRESH_TOKEN_DURATION | Refresh token duration | number | 30 | false |
REFRESH_TOKEN_SECRET | Refresh token pass phrase | string | / | true |
REFRESH_TOKEN_UNIT | Refresh token duration unit | string | days | false |
RESIZE_IS_ACTIVE | Images resizing activated | boolean | 1 | false |
RESIZE_PATH_MASTER | Images directory name | string | master-copy | false |
RESIZE_PATH_SCALE | Resized images path | string | rescale | path |
RESIZE_SIZE_LG | Large size value (px) | number | 1024 | false |
RESIZE_SIZE_MD | Medium size value (px) | number | 768 | false |
RESIZE_SIZE_SM | Small size value (px) | number | 320 | false |
RESIZE_SIZE_XL | Extra-large size value (px) | number | 1366 | false |
RESIZE_SIZE_XS | Extra-small size value (px) | number | 260 | false |
SSL_CERT | SSL certificate path | string | / | false |
SSL_KEY | SSL key path | string | / | false |
TYPEORM_DB | Database name | string | / | true |
TYPEORM_CACHE | Database cache activated | boolean | 0 | false |
TYPEORM_CACHE_DURATION | Database cache duration | number | 5000 | false |
TYPEORM_HOST | Database server host | string | / | true |
TYPEORM_LOG | Queries logs activated | boolean | 0 | false |
TYPEORM_NAME | Databse connection identifier | string | default | false |
TYPEORM_PORT | Database server port | number | / | true |
TYPEORM_PWD | Database password | string | / | true |
TYPEORM_SYNC | Schema synchronization activated | boolean | 0 | false |
TYPEORM_TYPE | Database engine | string | / | true |
TYPEORM_USER | Database user | string | / | true |
UPLOAD_MAX_FILE_SIZE | Max file size (bytes) | number | 1000000 | false |
UPLOAD_MAX_FILES | Max number of files per request | number | 5 | false |
UPLOAD_PATH | Destination path for uploads | string | public | false |
UPLOAD_WILDCARDS | Accepted file types for upload | string | * | false |
URL | HTTP root path of your API | string | http://localhost:8101 | false |