API
Environment Variables

Environment Variables

core/config/site.config.json
// App Settings
{
  "APP": {
    "APP_VERSION": "2.0",
    "APP_ENV": "development",
    "API_KEY": "",
    "APP_SECRET_PHRASE": "secret",
    "JWT_SECRET_TOKEN": "randome_token",
    "SERVER_PORT": "",
    "DB_URL": "",
    "COOKIE_KEY":"",
    "DEBUG": {
      "APP_LOGS": true
    }
  },
 // Mandatory, Only Allowed domains are allowed to use Api Services
  "DOMAIN": {
    "ALLOWED_DOMAINS": ["https://apiv1.example.com"],
    "ACTIVE_SITE_URL": "http://localhost:8000"
  },
 // Mailing System using Default nodemailer and SENDGRID service
  "MAIL_CONFIG": {
    "MAIL_SERVER": "nodemailer",
    "MAIL_HOST": "",
    "MAIL_USER": "",
    "MAIL_PASS": "",
    "SENDER_NAME": "",
 
    "SENDGRID": {
      "API_KEY": "",
      "API_SECRET": "",
      "MAIL_FROM": ""
    }
  },
 // SMS API Settings 2Factor.in  and Fast2sms.com
  "SMS_SVC": {
    "FASTSMS_API_KEY": "",
    "FACTOR2API_KEY": "",
    "SMS_TYPE": "OTP"
  },
  // Oauth Flow
  "OAUTH": {
    "GOOGLE_CLIENT_ID": "",
    "GOOGLE_CLIENT_SECRET": "",
    "GOOGLE_CALLBACK": "http://localhost:8000/api/v1/oauth/google/callback"
  },
//  Use PreInstalled Cache Service to reduce API calls exectution time
  "CACHE": {
    "ENABLED": true,
    "EXPIRY": "122",
    "CACHE_URL": "redis://127.0.0.1:6379"
  },
  // Enable Hardcore Performance by creating multiple intances of your application
  "INSTANCE": {
    "USE_CLUSTERS": false,
    "UV_THREADPOOL_SIZE": 4
  }
}