mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server-ts: Port services/host
This commit is contained in:
parent
dbccf6b433
commit
45cb7ced2c
@ -11,7 +11,7 @@ if (config.Network.https) {
|
||||
}
|
||||
|
||||
const port = require('./src/services/port.ts');
|
||||
const host = require('./src/services/host.js');
|
||||
const host = require('./src/services/host');
|
||||
|
||||
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';
|
Loading…
x
Reference in New Issue
Block a user