Allow HTTPS connections to the sync server

This commit is contained in:
FliegendeWurst 2021-09-29 09:29:52 +02:00
parent ce45fa25cf
commit 9f05d4c824
2 changed files with 2 additions and 2 deletions

View File

@ -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). 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`. 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 `TRILIUM_USER` and `TRILIUM_PASSWORD`.
Set `TELEGRAM_USER_ID` to your own Telegram User ID. Set `TELEGRAM_USER_ID` to your own Telegram User ID.

View File

@ -27,7 +27,7 @@ pub static TRILIUM_HOST: Lazy<String> = Lazy::new(|| {
}); });
pub fn trilium_url(path: &str) -> String { pub fn trilium_url(path: &str) -> String {
format!("http://{}{}", *TRILIUM_HOST, path) format!("{}{}", *TRILIUM_HOST, path)
} }
pub static TRILIUM_TOKEN: Lazy<String> = Lazy::new(|| { pub static TRILIUM_TOKEN: Lazy<String> = Lazy::new(|| {