allow to specify HOST and PORT via env

This commit is contained in:
lesion 2022-05-05 11:11:06 +02:00
parent 65b676b5f1
commit 85ee5deea1
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -7,8 +7,8 @@ let config = {
baseurl: '',
hostname: '',
server: {
host: '0.0.0.0',
port: 13120
host: process.env.GANCIO_HOST || '0.0.0.0',
port: process.env.GANCIO_PORT || 13120
},
log_level: 'debug',
log_path: path.resolve(process.env.cwd || '', 'logs'),