PHP Classes

File: .env.customer.example

Recommend this page to a friend!
  Packages of Ramesh Narayan Jangid (Sharma)   PHP Microservices Framework   .env.customer.example   Download  
File: .env.customer.example
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change:
Date: 5 days ago
Size: 4,649 bytes
 

 

Contents

Class file image Download
; ; Global DB level config (represented by zero)) ; ;; Domain name settings PUBLIC_DOMAIN_NAME='customer<Id>.localhost' PRIVATE_WEB_DOMAIN_NAME='web.customer<Id>.localhost' PRIVATE_API_DOMAIN_NAME='api.customer<Id>.localhost' ;; Customer config directory CUSTOMER_CONFIG_DIRECTORY='CustomerConfigSet.<Id>' ;; Enable OUTPUT_PERFORMANCE_STATS=true DISABLE_PROXY_REQUEST=true ;; Encryption secret setting SECRET='changeme' ;; Concurrent logins ENABLE_CONCURRENT_LOGIN=true CONCURRENT_LOGIN_COUNT=10 ; ;Payload settings ENABLE_PAYLOAD_IN_RESPONSE=true PAYLOAD_KEY_IN_RESPONSE='Payload' ;; Default per page (records per page) DEFAULT_PER_PAGE_COUNT=10 MAX_PER_PAGE_COUNT=1000 ;; Customer level private domain login lifetime TOKEN_LIFETIME=3600; SESSION_LIFETIME=3600 ; ; Route related config (to allow / now to allow) settings ; ;; Exact keyword routes ENABLE_RELOAD=true ENABLE_ROUTES=true ; Keywords RELOAD_KEYWORD='reload' ROUTES_KEYWORD='routes' ;; Supplement feature prefixed to route with slash ENABLE_CRON=true ENABLE_CUSTOM=true ENABLE_DROPBOX=true ENABLE_THIRDPARTY=true ENABLE_UPLOAD=true ; Supplement feature Keywords CRON_KEYWORD='cron' CUSTOM_KEYWORD='custom' DROPBOX_KEYWORD='cdn' THIRDPARTY_KEYWORD='thirdParty' UPLOAD_KEYWORD='upload' ; Supplement functions keyword to append APPEND_SUPPLEMENT_FUNCTION_KEYWORD='Process' ;; Keyword to append to all route with slash ENABLE_EXPLAIN=true ENABLE_IMPORT=true ENABLE_IMPORT_SAMPLE=true ; Keywords EXPLAIN_KEYWORD='explain' IMPORT_CSV_KEYWORD='import' IMPORT_SAMPLE_KEYWORD='import-sample' ;; Download client location for export CSV ENABLE_EXPORT=true EXPORT_KEYWORD='export' EXPORT_CLIENT_LOCATION='/usr/local/bin/mysql' ; ; Rate limiting config ; ENABLE_RATE_LIMITING=true ;; Requests ENABLE_RATE_LIMITING_CUSTOMER=true ENABLE_RATE_LIMITING_ROUTE=true ENABLE_RATE_LIMITING_GROUP=true ENABLE_RATE_LIMITING_GROUP_ROUTE=true ENABLE_RATE_LIMITING_USER=true ENABLE_RATE_LIMITING_USER_ROUTE=true ;; IP requests ENABLE_RATE_LIMITING_CUSTOMER_IP=true ENABLE_RATE_LIMITING_ROUTE_IP=true ENABLE_RATE_LIMITING_GROUP_IP=true ENABLE_RATE_LIMITING_GROUP_ROUTE_IP=true ENABLE_RATE_LIMITING_USER_IP=true ENABLE_RATE_LIMITING_USER_ROUTE_IP=true ;; Login requests ENABLE_RATE_LIMITING_LOGIN=true ENABLE_RATE_LIMITING_LOGIN_IP=true ENABLE_RATE_LIMITING_EACH_USER_LOGIN=true ENABLE_RATE_LIMITING_EACH_USER_LOGIN_IP=true ; ; --- Containers detail ------- ; ;; Cache container - Redis / Memcached / MongoDb CACHE_MODE='Redis' CACHE_HOST='127.0.0.1' CACHE_PORT=6379 CACHE_USER='username' CACHE_PASSWORD='password' CACHE_DB=0 CACHE_TABLE='' ; For MongoDb ;; Database container - MySql / PostgreSql ; Master database MASTER_DB_MODE='MySql' MASTER_DB_HOST='127.0.0.1' MASTER_DB_PORT=3306 MASTER_DB_USER='username' MASTER_DB_PASSWORD='shames11' MASTER_DB_NAME='customer_<id>' MASTER_DB_PLACEHOLDER='Named' ; Named(:param) / Unnamed(?) ; Slave database SLAVE_DB_MODE='MySql' SLAVE_DB_HOST='127.0.0.1' SLAVE_DB_PORT=3306 SLAVE_DB_USER='username' SLAVE_DB_PASSWORD='password' SLAVE_DB_NAME='customer_<id>' SLAVE_DB_PLACEHOLDER='Named' ; Named(:param) / Unnamed(?) ;; Query cache ENABLE_QUERY_CACHE_FOR_PUBLIC=true ENABLE_QUERY_CACHE_FOR_PRIVATE_WEB=true ENABLE_QUERY_CACHE_FOR_PRIVATE_API=true ; Query cache container - Redis / Memcached / MongoDb QUERY_CACHE_MODE='Redis' QUERY_CACHE_HOST='127.0.0.1' QUERY_CACHE_PORT=6379 QUERY_CACHE_USER='username' QUERY_CACHE_PASSWORD='password' QUERY_CACHE_DB=0 QUERY_CACHE_TABLE='api_cache' ; For MongoDb ; ; PHP session related configs ; ;; Session mode - 'File', 'MySql', 'PostgreSql', 'MongoDb', 'Redis', 'Memcached', 'Cookie' SESSION_STORE_MODE='MySql' ;; Session storage - 'File' SESSION_STORE_PATH='/var/sessions' ;; Session storage - 'Cookie' SESSION_DATA_COOKIE_NAME='PHPSESSDATA' ; For SESSION_STORE_MODE Cookie ;; Session encryption - 'File', 'MySql', 'PostgreSql', 'MongoDb', 'Redis', 'Memcached', 'Cookie' ; Value=base64_encode(openssl_random_pseudo_bytes(32)) SESSION_ENCRYPTION_PASS_PHRASE='H7OO2m3qe9pHyAHFiERlYJKnlTMtCJs9ZbGphX9NO/c=' ; Value=base64_encode(openssl_random_pseudo_bytes(16)) SESSION_ENCRYPTION_IV='HnPG5az9Xaxam9G9tMuRaw=' ; Cookie settings - 'File', 'MySql', 'PostgreSql', 'MongoDb', 'Redis', 'Memcached', 'Cookie' SESSION_COOKIE_NAME='PHPSESSID' SESSION_COOKIE_PATH='/' SESSION_COOKIE_SECURE=false SESSION_COOKIE_HTTPONLY=true SESSION_COOKIE_SAMESITE='Lax' ; Session container - 'MySql', 'PostgreSql', 'MongoDb', 'Redis', 'Memcached' SESSION_HOST='localhost' SESSION_PORT=3306 SESSION_USER='username' SESSION_PASSWORD='password' SESSION_DB='customer_<id>' SESSION_TABLE='session' ; ; CIDR config ; ENABLE_CIDR=true