You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

The configuration files are JavaScript files loaded as NodeJS modules, which allow us to use libraries, variables and comments in the configurations, making them much more dynamic and easier to read.

Server Configuration

The server configuration holds all the server only features such as the logging, security, connection to the database and more. The main configuration file is stored in the env folder inside the server folder, this file holds the generic configuration applicable for all the environments.

Each environment has its own configuration file, the choosing of the environment configuration depends on the value in the NODE_ENV environment variable (by default is development). These environment configuration files will later be merge with the all.js configuration file, being the all file the base for the merging. Any field declare in the environment configuration will overwrite the one in the all file


Every change made in the server configuration requires to restart the server in order to be effective 



User Interface Configuration

The UI configuration is tailored every time is requested by, using multiple files merge into one single config file, this allow us to make any change and ensure the UI will detect it. The major configuration features are their own file, where the name of the file will be the name of the field in the final configuration (e.g. facets.js will be in the configuration file "facets": {...})

The configuration of the tabs is store inside the tabs folder, and each tab configuration is referred in the tabs_control.js file, which indicates the active tabs to use. Each of these referred configuration will be tailored inside the final configuration

The UI configuration doesn't required to restart the server in order to be effective

  • No labels