From ca7f92e309744292ce8bd0c2312c63a1c16fa0e6 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 8 Aug 2018 20:41:01 +0000 Subject: [server/config] Add server configs. Add config with tftp and https details. Use config port > ENV Variables port > default port. --- server/bin/www | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/bin') diff --git a/server/bin/www b/server/bin/www index 512fe54..3618506 100755 --- a/server/bin/www +++ b/server/bin/www @@ -10,11 +10,15 @@ var debug = require('debug')('bas:server') var https = require('https') var fs = require('fs') +/* global __appdir */ +var path = require('path') +var config = require(path.join(__appdir, 'config', 'config')).https + /** * Get port from environment and store in Express. */ -var port = normalizePort(process.env.PORT || '3000') +var port = normalizePort(config.port || process.env.PORT || '3000') app.set('port', port) /** -- cgit v1.2.3-55-g7522