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(|| {