Configurations
Environment based configuration
Overview
Since V4 of SugoiJS, it's allowed to define properties as part of the configuration of application.
The configuration directory found on the root level of the server directory, in the following structure:
root
server
configuration
default
security.js
ssl.js
variables.js
<environment>
security.js
ssl.js
variables.js
Take a look on the build part of the @sugoi/cli
Configuration files
security.js
Powered by HelmetJS. Provides basic security layer to you web server.
Configuration
ssl.js
Define the path to the ssl certificate files
Configuration
variables.js
Map of environment variables to inject in build time.
access to those environment variable is possible via environment variables
Many others...
Access to configuration variables is possible using configuration resolving.
Last updated