Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Since Commit d6abb0 we are using global .env files. They are located in /etc/nmsprime/env/*.env. Each module that requires separate env settings, deploy there own *.env file. Deployment is done with Install API – config files. These files are automated filled with random passwords during install, for example: Install/after_install.sh

 

...

1. Descriptions

SectionValueUsageNote
NMS PrimeAPP_ENV  
 APP_DEBUG  
 APP_KEY  
 APP_LOG  
    
DatabaseDB_HOST  
    

 

2. Examples

A)

...

global.env

Code Block
title.env
# TODO: Test this is the global configuration file

APP_ENV=local
APP_DEBUG=false
APP_KEY=<key>
APP_LOG=single
APP_LOG_LEVEL=info

DB_HOST=localhost
DB_DATABASE=db_nmsprime # TODO: rename table
DB_USERNAME=root
DB_PASSWORD=<password>

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=database

B) More complex – from a production system

Code Block
languagephp
title.env
APP_ENV=local
APP_DEBUG=false
APP_KEY=<key>
APP_LOG=single
APP_LOG_LEVEL=info

DB_HOST=localhost
DB_DATABASE=db_nmsprime # TODO: rename table
DB_USERNAME=root
DB_PASSWORD=<password>

VOIPMONITOR_DB_HOST=<ip>
VOIPMONITOR_DB_DATABASE=voipmonitor
VOIPMONITOR_DB_USERNAME=voipmonitor
VOIPMONITOR_DB_PASSWORD=<password>

ICINGA2_
# generate using "php artisan key:generate"
APP_KEY=base64:l064arTFEris8J... # key auto generated during install

# overwrite logging behavior in config/app.php ? read comments there to learn possible values
APP_LOG=single
APP_LOG_LEVEL=info

DB_HOST=localhost
ICINGA2_DB_DATABASE=icinga2nmsprime
ICINGA2_DB_USERNAME=icinga2usernmsprime
ICINGA2_DB_PASSWORD=<password>Tie3azw6oobf

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=database

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null

CCC_DB_DATABASE=lara_customer
CCC_DB_USERNAME=<user>
CCC_DB_PASSWORD=<password>
# BaseURL used in console commands
APP_CONSOLE_BASEURL='https://localhost:8080/nmsprime'

# HTTPS Port settings
HTTPS_ADMIN_PORT=8080
HTTPS_CCC_PORT=443