Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Configuration is done through environment variables.
- `SECRETS_MANAGER_PORT` the port to run on - **default is 3000**
- `SECRETS_MANAGER_PRELOAD_DIRECTORY` absolute path of directory from which to read initial set of secrets (see below) - **default is empty**
- `SECRETS_MANAGER_SECRETS` secrets to preload if you are unable to use volume mounts - **default is empty**
- `SECRETS_MANAGER_LOG_LEVEL` override log level - **default is 'info'**


## Preloading secrets
Expand Down
6 changes: 4 additions & 2 deletions main/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ nconf
.defaults({
NODE_ENV: 'dev',
SECRETS_MANAGER_PRELOAD_DIRECTORY: '',
SECRETS_MANAGER_PORT: 3000
SECRETS_MANAGER_PORT: 3000,
SECRETS_MANAGER_LOG_LEVEL: 'info'
});

module.exports = {
NODE_ENV: nconf.get('NODE_ENV'),
PRELOAD_DIRECTORY: nconf.get('SECRETS_MANAGER_PRELOAD_DIRECTORY'),
PORT: nconf.get('SECRETS_MANAGER_PORT')
PORT: nconf.get('SECRETS_MANAGER_PORT'),
LOG_LEVEL: nconf.get('SECRETS_MANAGER_LOG_LEVEL')
};
3 changes: 2 additions & 1 deletion main/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ async function go(config) {
options: {
colorize: true
}
}
},
level: config.LOG_LEVEL
}
});

Expand Down