Application is designed to be stateless - it is controlled by environmental variables
Each Variable that that has LARAVEL_ is converted nto variable set for .env file for Laravel Environment Configuration. Note that .env is ephemeral and created each time service restarts.
Example
LARAVEL_APP_NAME=Wellms
LARAVEL_APP_ENV=localwill be saved into .env as
APP_NAME=Wellms
APP_ENV=localMULTI_DOMAINS has comma separated list of domains that will be used for init_multidomains.sh script
Each domain can have a specific Laravel Environment Configuration. Note that each domain .env is ephemeral and created each time service restarts.
Example
MULTI_DOMAINS=api17005.localhost,api16576.localhost,api22800.localhost
API17005_LOCALHOST_APP_NAME="App one"
API16576_LOCALHOST_APP_NAME="App two"
API22800_LOCALHOST_APP_NAME="App three"
API22800_LOCALHOST_INITIAL_USER_PASSWORD="password one"
API16576_LOCALHOST_INITIAL_USER_PASSWORD="password one"
API17005_LOCALHOST_INITIAL_USER_PASSWORD="password two"Wil create three .env for each domain prefixed
#.env.api17005.localhost file
APP_NAME="App one"
INITIAL_USER_PASSWORD="password one"#.env.api16576.localhost file
APP_NAME="App two"
INITIAL_USER_PASSWORD="password one"#.env.api22800.localhost file
APP_NAME="App three"
INITIAL_USER_PASSWORD="password two"Each
| Variable name | Description | Default |
|---|---|---|
LARAVEL_ prefix |
main Laravel Environment Configuration | |
${DOMAIN_KEY}_ prefix |
domain specific Laravel Environment Configuration | |
MULTI_DOMAINS |
Comma separated list of multidomains | |
DISABLE_PHP_FPM |
Disable PHP FPM Supervisor process | false |
DISABLE_HORIZON |
Disable Laravel Horizon Supervisor process | false |
DISABLE_SCHEDULER |
Disable Laravel Scheduler Supervisor process | false |
DISABLE_H5P_STORAGE_LINK |
Disable h5p storage link | false |
JWT_PUBLIC_KEY_BASE64 |
Base64 encoded storage/oauth-public.key |
|
JWT_PRIVATE_KEY_BASE64 |
Base64 encoded storage/oauth-private.key |
|
${DOMAIN_KEY}_JWT_PUBLIC_KEY_BASE64 |
Base64 encoded storage/oauth-public.key for domain |
|
${DOMAIN_KEY}_JWT_PRIVATE_KEY_BASE64 |
Base64 encoded storage/oauth-private.key for domain |
|
DISABLE_DB_MIGRATE |
Disable Laravel Database migration on startup | false |
DISABLE_DB_SEED |
Disable Laravel Permissions Database Seed migration on startup | false |
DISABLE_QUEUE |
Disable Laravel Queue Supervisor process (only for Multidomains) | false |
INITIAL_USER_PASSWORD |
Initial admin password | |
INITIAL_USER_FIRST_NAME |
Initial admin first name | Root |
INITIAL_USER_LAST_NAME |
Initial admin last name | Admin |
INITIAL_USER_EMAIL |
Initial admin email | admin@escolalms.com |
${DOMAIN_KEY}_INITIAL_USER_PASSWORD |
Initial admin password for domain | |
${DOMAIN_KEY}_INITIAL_USER_FIRST_NAME |
Initial admin first name for domain | Root |
${DOMAIN_KEY}_INITIAL_USER_LAST_NAME |
Initial admin last name for domain | Admin |
${DOMAIN_KEY}_INITIAL_USER_EMAIL |
Initial admin email for domain | admin@escolalms.com |