PHP Classes

File: .env.example

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid (Sharma)   Open Swoole Microservices   .env.example   Download  
File: .env.example
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Open Swoole Microservices
Implement microservices using Open Swoole
Author: By
Last change: Avoid Idempotent requests
Date: 15 days ago
Size: 3,782 bytes
 

Contents

Class file image Download
;Environment PRODUCTION = 1 / DEVELOPMENT = 0 ENVIRONMENT=0 ;Add Performance Stats in Json output: 1 = true / 0 = false OUTPUT_PERFORMANCE_STATS=1 ; ;Route related config (to allow / now to allow) settings ; ;Allow particular route config request (global flag) - 1 = true / 0 = false ;Useful to get details of the payload required by the API allowConfigRequest=1 configRequestUriKeyword='config' ;to append /config at end of route ;Similarly allowCronRequest=1 cronRequestUriPrefix='cron' cronRestrictedIp='127.0.0.1' allowRoutesRequest=1 routesRequestUri='routes' allowCustomRequest=1 customRequestUriPrefix='custom' allowUploadRequest=1 uploadRequestUriPrefix='upload' allowThirdPartyRequest=1 thirdPartyRequestUriPrefix='thirdParty' allowCacheRequest=1 cacheRequestUriPrefix='cache' ; ;Cache related configs ; ; ---- Rate Limit Server Details (Redis) ;used to save Rate Limiting related details RateLimiterHost='127.0.0.1' ; Redis host dealing with Rate limit RateLimiterHostPort=6379 ; Redis host port RateLimiterIPMaxRequests=600 ; Max request allowed per IP RateLimiterIPSecondsWindow=300 ; Window in seconds of Max request allowed per IP RateLimiterIPPrefix='IPRL:' ; IP based Rate Limitng (IPRL) key prefix used in Redis RateLimiterClientPrefix='CRL:' ; Client based Rate Limitng (GRL) key prefix used in Redis RateLimiterGroupPrefix='GRL:' ; Group based Rate Limitng (GRL) key prefix used in Redis RateLimiterUserPrefix='URL:' ; User based Rate Limitng (URL) key prefix used in Redis ; ---- Api Gateway ;user <username> allcommands allkeys on ><password> ;used to save user and token related details cacheType='Redis' cacheHostname='127.0.0.1' cachePort=6379 cacheUsername='ramesh' cachePassword='shames11' cacheDatabase=0 ; Settings to avoid Idempotent requests IdempotentSecret='secret' ; hash_hmac secret IdempotentWindow=10 ; Window in seconds to avoid Idempotent requests ; ---- SQL cache ; ---- DML(Master) Save SQL cache to dmlCacheType='Redis' dmlCacheHostname='127.0.0.1' dmlCachePort=6379 dmlCacheUsername='ramesh' dmlCachePassword='shames11' dmlCacheDatabase=0 ; ---- DQL(Slave) Retrive SQL cache from dqlCacheType='Redis' dqlCacheHostname='127.0.0.1' dqlCachePort=6379 dqlCacheUsername='ramesh' dqlCachePassword='shames11' dqlCacheDatabase=0 ; ;Database related configs ; ; --- Global Database ;Global Database details - global.sql globalType='MySql' globalHostname='127.0.0.1' globalPort=3306 globalUsername='root' globalPassword='shames11' globalDatabase='global' ; Settings ;Tables detail of defaultDbDatabase Database on default MySql server groups='m002_master_groups' clients='m001_master_clients' ;client_master on global MySql server clientMasterDbName='client_master' ;contains all entities required for a new client ; --- Client Databases ; ------ OPTION 1 -------- ;Details of common database shared by all client defaultDbType='MySql' defaultDbHostname='127.0.0.1' defaultDbPort=3306 defaultDbUsername='root' defaultDbPassword='shames11' defaultDbDatabase='common' ; ------ OPTION 2 -------- ;Dedicated databases for each client on single host ;Only database changes rest detail remains same. dbTypeClient001='MySql' dbHostnameClient001='127.0.0.1' dbPortClient001=3306 dbUsernameClient001='root' dbPasswordClient001='shames11' dbDatabaseClient001='client_001' ; ------ OPTION 3 -------- ;Dedicated DB Server Details for the client dbTypeClient002='MySql' dbHostnameClient002='DEDICATED-HOST-ADDRESS' dbPortClient002=3306 dbUsernameClient002='username' dbPasswordClient002='password' dbDatabaseClient002='database' ; Settings ;Client Database table containing user login details client_users='master_users' ;Default perpage (records per page) defaultPerpage=10 maxPerpage=1000