|
|
|
|
@ -4,7 +4,7 @@ const fs = require("fs");
|
|
|
|
|
const dataDir = require("./src/services/data_dir");
|
|
|
|
|
const config = ini.parse(fs.readFileSync(dataDir.CONFIG_INI_PATH, 'utf-8'));
|
|
|
|
|
|
|
|
|
|
if (config.https) {
|
|
|
|
|
if (config.Network.https) {
|
|
|
|
|
// built-in TLS (terminated by trilium) is not supported yet, PRs are welcome
|
|
|
|
|
// for reverse proxy terminated TLS this will works since config.https will be false
|
|
|
|
|
process.exit(0);
|
|
|
|
|
|