* 'master' of https://github.com/taobataoma/meanTorrent:
  cfg(core): config global HOST settings
This commit is contained in:
OldHawk
2018-03-07 17:12:10 +08:00
2 changed files with 2 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ module.exports = {
promise: global.Promise
},
port: process.env.PORT || 3000,
host: process.env.HOST || '127.0.0.1',
host: process.env.HOST || '0.0.0.0',
// DOMAIN config should be set to the fully qualified application accessible
// URL. For example: https://www.myapp.com (including port if required).
domain: process.env.DOMAIN || 'mine.pt',

View File

@@ -10,8 +10,7 @@ module.exports = {
caBundle: './config/sslcerts/cabundle.crt'
},
port: process.env.PORT || 3000,
// Binding to 127.0.0.1 is safer in production.
host: process.env.HOST || '127.0.0.1',
host: process.env.HOST || '0.0.0.0',
db: {
uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev-v2',
options: {