mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
13 lines
288 B
TypeScript
13 lines
288 B
TypeScript
import config from "./config.js";
|
|
import utils from "./utils.js";
|
|
|
|
function getHost() {
|
|
const envHost = process.env.TRILIUM_HOST;
|
|
if (envHost && !utils.isElectron) {
|
|
return envHost;
|
|
}
|
|
|
|
return config['Network']['host'] || '0.0.0.0';
|
|
}
|
|
|
|
export default getHost(); |