mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 13:53:28 -07:00
support env.SCHEME
This commit is contained in:
parent
e0095ffaf6
commit
1631c7517e
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
|
||||
"scheme" : "https",
|
||||
"port": 7777,
|
||||
|
||||
"keyLength": 10,
|
||||
|
|
|
@ -21,7 +21,8 @@ var config = JSON.parse(fs.readFileSync('./config.js', 'utf8'));
|
|||
config.port = process.env.PORT || config.port || 7777;
|
||||
config.host = process.env.HOST || config.host || 'localhost';
|
||||
config.secret = process.env.SECRET || '43rndsafdsakf;djsafkdsarf';
|
||||
config.origin = 'http://' + config.host + ":" + config.port + "/";
|
||||
config.scheme = process.env.SCHEME || config.scheme || 'https'
|
||||
config.origin = config.scheme + '://' + config.host + ":" + config.port + "/";
|
||||
|
||||
// Set up the loggergg
|
||||
if (config.logging) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue