The configuration file dc_controller/server/config.py contains all the parameters of DCC.

It contains information about:
  1. DCC internal credentials, secret key, and path to client certificate.
  2. MongoDB location and credentials, DC Core location and credentials, maximum number of clients interacting with web service gateway, DCC location, and type of deployment (i.e. Bare metal or virtualized).
This file will be generated as result of the 'create first user' script execution:
MONGODB_URI='127.0.0.1:27017'
MONGODB_USERNAME='admin'
MONGODB_PASSWORD='ENCRYPTED_PASSWORD'
MONGODB_DATABASE='admin'
DEPLOYMENT_TYPE='BAREMETAL'
MNR_HOST='127.0.0.1'
MNR_PORT='48443'
MNR_USER='admin'
MNR_PASSWORD='ENCRYPTED_PASSWORD'
MNR_MAX_THREADS=2
SECRET_KEY='SECRET_KEY'
CERTIFICATE_PATH='/opt/DCF/Tools/Controller/Default'
DCF_HOST='0.0.0.0'
DCF_PORT='8443'
USERNAME='admin'
PASSWORD='ENCRYPTED_PASSWORD'
LOG_LEVEL='INFO' # 'DEBUG', 'ERROR', 'CRITICAL',    'WARNING'

# The following properties are passed to the DCC web server (Gunicorn) 
bind='0.0.0.0:8443'   #   Gunicorn   bind socket
workers='4' # Number of async workers 
worker_class='gthread'  #  Gunicorn  mode
certfile='/opt/DCF/Tools/Controller/Default/conf/controller-cert.pem'
keyfile='/opt/DCF/Tools/Controller/Default/conf/controller-key.pem' preload_app='True'

# The following is a Gunicorn server hook, called just after the server is started.
def when_ready(server):
import dc_controller.wsgi as dcfControllerApp
dcfControllerApp.create_default_template()
The 'config.py' file can be regenerated using below command :
python3.6 <DCF_Installation_path>/Tools/Controller/Default/dc_controller/utils/create-first-user.py <DEPLOYMENT_TYPE> <MongoDB_USERNAME> <MongoDB_PASSWORD> <MONGODB_URI> <MNR_HOST><MNR_PORT> <MNR_USERNAME> <MNR_PASSWORD> <MNR_MAX_THREADS> <OUTPUT_CONFIG_FILE> <CERTIFICATE_PATH><KEY_FILE_PATH> <DCF_HOST> <DCF_PORT> <DCF_HOST:DCF_PORT> <DCF_USERNAME><DCF_PASSWORD>