mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-21 18:34:57 +00:00
Allow HTTPS connections to the sync server
This commit is contained in:
parent
ce45fa25cf
commit
9f05d4c824
@ -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.
|
||||||
|
|
||||||
|
@ -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(|| {
|
||||||
|
Loading…
Reference in New Issue
Block a user