From d1511eaf2f7b82611f34013bba2583e5c38b8ce1 Mon Sep 17 00:00:00 2001 From: Sokhibjon Orzikulov Date: Mon, 20 Nov 2023 12:02:41 +0500 Subject: [PATCH] allow internal & remove internal host --- compose.yaml | 2 +- src/main.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compose.yaml b/compose.yaml index 9722c80..c4902af 100644 --- a/compose.yaml +++ b/compose.yaml @@ -17,7 +17,7 @@ services: - 8443:8443 env_file: .env extra_hosts: - - "host.docker.internal:host-gateway" + - "host.docker.internal:host-gateway" # The commented out section below is an example of how to define a PostgreSQL # database that your application can use. `depends_on` tells Docker Compose to diff --git a/src/main.rs b/src/main.rs index 2518ca0..665a2ce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,8 +11,7 @@ async fn main() -> Result<(), Box> { pretty_env_logger::init(); log::info!("Starting Rustina Assistant..."); - let bot = Bot::from_env(); - // .set_api_url(std::env::var("TELEGRAM_API").unwrap().parse().unwrap()); + let bot = Bot::from_env(); let groups = Groups::new(); let github = GitHub::new();