From 9f05d4c82464a0b838144db1afc6e5d3ba811f4e Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 29 Sep 2021 09:29:52 +0200 Subject: [PATCH] Allow HTTPS connections to the sync server --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 267da43..5cd4953 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Zip the contents of the `notes` directory into a .zip file and import it into Trilium Notes (right-click into the tree sidebar -> Import). Acquire a bot token from Telegram and save it in the environment variable `TELEGRAM_BOT_TOKEN`. -Set `TRILIUM_HOST` to the `IP:port` of your sync server. +Set `TRILIUM_HOST` to `http://IP:port` (or `https://domain:port`) of your sync server. Set `TRILIUM_USER` and `TRILIUM_PASSWORD`. Set `TELEGRAM_USER_ID` to your own Telegram User ID. diff --git a/src/lib.rs b/src/lib.rs index 330a91a..5f12db6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ pub static TRILIUM_HOST: Lazy = Lazy::new(|| { }); pub fn trilium_url(path: &str) -> String { - format!("http://{}{}", *TRILIUM_HOST, path) + format!("{}{}", *TRILIUM_HOST, path) } pub static TRILIUM_TOKEN: Lazy = Lazy::new(|| {