mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 13:14:44 +08:00
11 lines
265 B
JavaScript
11 lines
265 B
JavaScript
|
const config = require('./config');
|
||
|
const env = require('./env');
|
||
|
|
||
|
let environmentHost;
|
||
|
|
||
|
if (process.env.TRILIUM_HOST) {
|
||
|
environmentHost = process.env.TRILIUM_HOST;
|
||
|
}
|
||
|
|
||
|
module.exports = Promise.resolve(environmentHost || config['Network']['host'] || '0.0.0.0');
|