Variables
Const ALLOW_DISPOSABLE_EMAILS
ALLOW_DISPOSABLE_EMAILS: boolean = !!process.env.DISPOSABLE_EMAIL
Const AWS_ELASTIC_ACCESS_KEY
AWS_ELASTIC_ACCESS_KEY: string = process.env.AWS_ELASTIC_ACCESS_KEY || ""
Const AWS_ELASTIC_HOST
AWS_ELASTIC_HOST: string = process.env.AWS_ELASTIC_HOST || ""
Const AWS_ELASTIC_REGION
AWS_ELASTIC_REGION: string = process.env.AWS_ELASTIC_REGION || ""
Const AWS_ELASTIC_SECRET_KEY
AWS_ELASTIC_SECRET_KEY: string = process.env.AWS_ELASTIC_SECRET_KEY || ""
Const BASE_URL
BASE_URL: string = process.env.BASE_URL || ""
Const BRUTE_FREE_RETRIES
BRUTE_FREE_RETRIES: number = process.env.BRUTE_FREE_RETRIES? parseInt(process.env.BRUTE_FREE_RETRIES): 100
Const BRUTE_LIFETIME
BRUTE_LIFETIME: number = process.env.BRUTE_LIFETIME? parseInt(process.env.BRUTE_LIFETIME): 300000
Const CACHE_CHECK_PERIOD
CACHE_CHECK_PERIOD: number = process.env.CACHE_CHECK_PERIOD? parseInt(process.env.CACHE_CHECK_PERIOD): 1000
Const CACHE_TTL
CACHE_TTL: number = process.env.CACHE_TTL? parseInt(process.env.CACHE_TTL): 600
Const DB_DATABASE
DB_DATABASE: string = process.env.DB_DATABASE || "database"
Const DB_HOST
DB_HOST: string = process.env.DB_HOST || "localhost"
Const DB_PASSWORD
DB_PASSWORD: string = process.env.DB_PASSWORD || ""
Const DB_PORT
DB_PORT: number = process.env.DB_PORT? parseInt(process.env.DB_PORT): 3306
Const DB_TABLE_PREFIX
DB_TABLE_PREFIX: string = process.env.DB_TABLE_PREFIX || ""
Const DB_USERNAME
DB_USERNAME: string = process.env.DB_USERNAME || "root"
Const DISALLOW_OPEN_CORS
DISALLOW_OPEN_CORS: boolean = !!process.env.DISALLOW_OPEN_CORS
Const ELASTIC_EVENTS_PREFIX
ELASTIC_EVENTS_PREFIX: string = process.env.ELASTIC_EVENTS_PREFIX || "staart-events-"
Const ELASTIC_INSTANCES_INDEX
ELASTIC_INSTANCES_INDEX: string = process.env.ELASTIC_INSTANCES_INDEX || "staart-instances"
Const ELASTIC_LOGS_PREFIX
ELASTIC_LOGS_PREFIX: string = process.env.ELASTIC_LOGS_PREFIX || "staart-logs-"
Const FACEBOOK_CLIENT_ID
FACEBOOK_CLIENT_ID: string = process.env.FACEBOOK_CLIENT_ID || ""
Const FACEBOOK_CLIENT_SECRET
FACEBOOK_CLIENT_SECRET: string = process.env.FACEBOOK_CLIENT_SECRET || ""
Const FRONTEND_URL
FRONTEND_URL: string = process.env.FRONTEND_URL || "https://example.com"
Const GITHUB_CLIENT_ID
GITHUB_CLIENT_ID: string = process.env.GITHUB_CLIENT_ID || ""
Const GITHUB_CLIENT_SECRET
GITHUB_CLIENT_SECRET: string = process.env.GITHUB_CLIENT_SECRET || ""
Const GOOGLE_CLIENT_ID
GOOGLE_CLIENT_ID: string = process.env.GOOGLE_CLIENT_ID || ""
Const GOOGLE_CLIENT_SECRET
GOOGLE_CLIENT_SECRET: string = process.env.GOOGLE_CLIENT_SECRET || ""
Const HASH_IDS
HASH_IDS: string = process.env.HASH_IDS || "staart"
Const HASH_ID_PREFIX
HASH_ID_PREFIX: string = process.env.HASH_ID_PREFIX || "d0e8a7c-"
Const JWT_ISSUER
JWT_ISSUER: string = process.env.JWT_ISSUER || "staart"
Const JWT_SECRET
JWT_SECRET: string = process.env.JWT_SECRET || "staart"
Const MICROSOFT_CLIENT_ID
MICROSOFT_CLIENT_ID: string = process.env.MICROSOFT_CLIENT_ID || ""
Const MICROSOFT_CLIENT_SECRET
MICROSOFT_CLIENT_SECRET: string = process.env.MICROSOFT_CLIENT_SECRET || ""
Const PORT
PORT: number = process.env.PORT ? parseInt(process.env.PORT) : 80
Const PUBLIC_RATE_LIMIT_MAX
PUBLIC_RATE_LIMIT_MAX: number = process.env.PUBLIC_RATE_LIMIT_MAX? parseInt(process.env.PUBLIC_RATE_LIMIT_MAX): 60
Const PUBLIC_RATE_LIMIT_TIME
PUBLIC_RATE_LIMIT_TIME: number = process.env.PUBLIC_RATE_LIMIT_TIME? parseInt(process.env.PUBLIC_RATE_LIMIT_TIME): 60000
Const RATE_LIMIT_MAX
RATE_LIMIT_MAX: number = process.env.RATE_LIMIT_MAX? parseInt(process.env.RATE_LIMIT_MAX): 1000
Const RATE_LIMIT_TIME
RATE_LIMIT_TIME: number = process.env.RATE_LIMIT_TIME? parseInt(process.env.RATE_LIMIT_TIME): 60000
Const SALESFORCE_CLIENT_ID
SALESFORCE_CLIENT_ID: string = process.env.SALESFORCE_CLIENT_ID || ""
Const SALESFORCE_CLIENT_SECRET
SALESFORCE_CLIENT_SECRET: string = process.env.SALESFORCE_CLIENT_SECRET || ""
Const SENTRY_DSN
SENTRY_DSN: string = process.env.SENTRY_DSN || ""
Const SERVICE_2FA
SERVICE_2FA: string = process.env.SERVICE_2FA || "staart"
Const SES_ACCESS
SES_ACCESS: string = process.env.SES_ACCESS || ""
Const SES_EMAIL
SES_EMAIL: string = process.env.SES_EMAIL || ""
Const SES_REGION
SES_REGION: string = process.env.SES_REGION || "eu-west-1"
Const SES_SECRET
SES_SECRET: string = process.env.SES_SECRET || ""
Const SPEED_LIMIT_COUNT
SPEED_LIMIT_COUNT: number = process.env.SPEED_LIMIT_COUNT? parseInt(process.env.SPEED_LIMIT_COUNT): 1000
Const SPEED_LIMIT_DELAY
SPEED_LIMIT_DELAY: number = process.env.SPEED_LIMIT_DELAY? parseInt(process.env.SPEED_LIMIT_DELAY): 100
Const SPEED_LIMIT_TIME
SPEED_LIMIT_TIME: number = process.env.SPEED_LIMIT_TIME? parseInt(process.env.SPEED_LIMIT_TIME): 600000
Const STRIPE_PRODUCT_ID
STRIPE_PRODUCT_ID: string = process.env.STRIPE_PRODUCT_ID || ""
Const STRIPE_SECRET_KEY
STRIPE_SECRET_KEY: string = process.env.STRIPE_SECRET_KEY || ""
Const TEST_EMAIL
TEST_EMAIL: string = process.env.TEST_EMAIL || "staart@mailinator.com"
Const TOKEN_EXPIRY_API_KEY_MAX
TOKEN_EXPIRY_API_KEY_MAX: number = process.env.TOKEN_EXPIRY_API_KEY_MAX? parseInt(process.env.TOKEN_EXPIRY_API_KEY_MAX): 10413685800000
Const TOKEN_EXPIRY_APPROVE_LOCATION
TOKEN_EXPIRY_APPROVE_LOCATION: string = process.env.TOKEN_EXPIRY_APPROVE_LOCATION || "10m"
Const TOKEN_EXPIRY_EMAIL_VERIFICATION
TOKEN_EXPIRY_EMAIL_VERIFICATION: string = process.env.TOKEN_EXPIRY_EMAIL_VERIFICATION || "7d"
Const TOKEN_EXPIRY_LOGIN
TOKEN_EXPIRY_LOGIN: string = process.env.TOKEN_EXPIRY_LOGIN || "15m"
Const TOKEN_EXPIRY_PASSWORD_RESET
TOKEN_EXPIRY_PASSWORD_RESET: string = process.env.TOKEN_EXPIRY_PASSWORD_RESET || "1d"
Const TOKEN_EXPIRY_REFRESH
TOKEN_EXPIRY_REFRESH: string = process.env.TOKEN_EXPIRY_REFRESH || "30d"