Variables
Const BRUTE_FREE_RETRIES
BRUTE_FREE_RETRIES: number = process.env.BRUTE_FREE_RETRIES? parseInt(process.env.BRUTE_FREE_RETRIES): 10
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 CHARGEBEE_SECRET_KEY
CHARGEBEE_SECRET_KEY: string = process.env.CHARGEBEE_SECRET_KEY || ""
Const CHARGEBEE_SITE
CHARGEBEE_SITE: string = process.env.CHARGEBEE_SITE || ""
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_USERNAME
DB_USERNAME: string = process.env.DB_USERNAME || "root"
Const FACEBOOK_CLIENT_ID
FACEBOOK_CLIENT_ID: string = process.env.FACEBOOK_CLIENT_ID || ""
Const FACEBOOK_CLIENT_REDIRECT
FACEBOOK_CLIENT_REDIRECT: string = process.env.FACEBOOK_CLIENT_REDIRECT || ""
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_REDIRECT
GITHUB_CLIENT_REDIRECT: string = process.env.GITHUB_CLIENT_REDIRECT || ""
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_REDIRECT
GOOGLE_CLIENT_REDIRECT: string = process.env.GOOGLE_CLIENT_REDIRECT || ""
Const GOOGLE_CLIENT_SECRET
GOOGLE_CLIENT_SECRET: string = process.env.GOOGLE_CLIENT_SECRET || ""
Const JWT_ISSUER
JWT_ISSUER: string = process.env.JWT_ISSUER || "staart"
Const JWT_SECRET
JWT_SECRET: string = process.env.JWT_SECRET || "staart"
Const PORT
PORT: number = process.env.PORT ? parseInt(process.env.PORT) : 7007
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): 300
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_REDIRECT
SALESFORCE_CLIENT_REDIRECT: string = process.env.SALESFORCE_CLIENT_REDIRECT || ""
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_SECRET_KEY
STRIPE_SECRET_KEY: string = process.env.STRIPE_SECRET_KEY || ""
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 || "1d"
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"