mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 05:40:49 +08:00
server-ts: Port services/host
This commit is contained in:
parent
dbccf6b433
commit
45cb7ced2c
3 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue