feat: take LISTEN, PORT, and other env vars #294
This commit is contained in:
parent
9ec66127a9
commit
3e62f8dcb2
1 changed files with 11 additions and 0 deletions
|
@ -122,4 +122,15 @@ try {
|
|||
}
|
||||
const config = myConfig;
|
||||
|
||||
if (process.env.LISTEN) config.listen.ip = process.env.LISTEN;
|
||||
|
||||
if (process.env.PORT) config.listen.port = process.env.PORT;
|
||||
|
||||
if (process.env.SOCKETIO_ORIGINS) config.socketio.origins = process.env.SOCKETIO_ORIGINS;
|
||||
|
||||
if (process.env.SOCKETIO_PATH) config.socketio.path = process.env.SOCKETIO_PATH;
|
||||
|
||||
if (process.env.SOCKETIO_SERVECLIENT)
|
||||
config.socketio.serveClient = process.env.SOCKETIO_SERVECLIENT;
|
||||
|
||||
module.exports = config;
|
||||
|
|
Loading…
Reference in a new issue