mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
server-ts: Port services/host
This commit is contained in:
@@ -11,7 +11,7 @@ if (config.Network.https) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const port = require('./src/services/port.ts');
|
const port = require('./src/services/port.ts');
|
||||||
const host = require('./src/services/host.js');
|
const host = require('./src/services/host');
|
||||||
|
|
||||||
const options = { timeout: 2000 };
|
const options = { timeout: 2000 };
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
const config = require('./config');
|
|
||||||
|
|
||||||
module.exports = process.env.TRILIUM_HOST || config['Network']['host'] || '0.0.0.0';
|
|
||||||
3
src/services/host.ts
Normal file
3
src/services/host.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import config = require('./config');
|
||||||
|
|
||||||
|
export = process.env.TRILIUM_HOST || config['Network']['host'] || '0.0.0.0';
|
||||||
Reference in New Issue
Block a user