Compare commits

..

3 Commits

Author SHA1 Message Date
Vladislav Drozdov c8bf5e7cd9 Merge pull request 'feature/178' (#39) from feature/178 into rc
test-org/integration-module/pipeline/pr-master Build succeeded
Reviewed-on: http://git.enode/deployer3000/integration-module/pulls/39
2025-05-27 12:28:46 +03:00
deployer3000 04b4ffac2d Merge pull request 'Merge pull request 'feature/178' (#36) from feature/178 into rc' (#38) from rc into feature/178
test-org/integration-module/pipeline/pr-rc This commit looks good Details
2025-05-27 12:18:50 +03:00
prplV 2f1de2b4f4 env vars added 2025-05-27 05:12:20 -04:00
2 changed files with 9 additions and 5 deletions

View File

@ -10,6 +10,9 @@ DB_DBNAME = "db_name"1
EXPORTER_URL = "http(s)://ip.ip.ip.ip:port"
# VINTEO Jitter puller (needed to init Jitter native grab)
VINTEO_URL_BASE = "http(s)://ip.ip.ip.ip:port"
VINTEO_ENDPOINT_CONFERENCES = "/api/v1/to/something"
VINTEO_ENDPOINT_PARTICIPANTS = "/api/v1/to/something"
VINTEO_API_KEY = "6fe8b0db-62b4-4065-9c1e-441ec4228341.9acec20bd17d7178f332896f8c006452877a22b8627d089105ed39c5baef9711"
# Status Model API support
@ -20,7 +23,7 @@ STATUS_SYSTEM_URL = "http://192.168.2.39:9999/api/input"
ENODE_MONITORING_IP = "ip.ip.ip.ip"
ENODE_MONITORING_LOGIN = "admin_user_enode_monitoring" # admin user is required
ENODE_MONITORING_PASSWORD = "admin_password_enode_monitoring" # # admin password is required
ENODE_TARGET_DEVICES = "device$18,device$19"
ENODE_TARGET_DEVICES = "18, 19"
# IM configuration for max level of logging info
# for example DEBUG, INFO, WARN, ERROR, TRACE

View File

@ -11,8 +11,9 @@ use async_stream::stream;
use futures::{future, pin_mut, stream::Stream, StreamExt};
lazy_static! {
static ref CONFERENCES_ENDPOINT: String = String::from("/api/v1/conferences");
static ref USERS_ENDPOINT: String = String::from("/api/v1/participants/");
static ref VINTEO_BASE: String = std::env::var("VINTEO_URL_BASE").unwrap_or_else(|_| String::from("https://demo.vcs.vinteo.dev"));
static ref CONFERENCES_ENDPOINT: String = std::env::var("VINTEO_ENDPOINT_CONFERENCES").unwrap_or_else(|_| String::from("/api/v1/conferences"));
static ref USERS_ENDPOINT: String = std::env::var("VINTEO_ENDPOINT_PARTICIPANTS").unwrap_or_else(|_| String::from("/api/v1/participants/"));
}
// conferences ids
@ -49,8 +50,8 @@ struct Requester {
impl Requester {
pub fn new() -> anyhow::Result<Self> {
Ok(Self {
base: String::from("https://demo.vcs.vinteo.dev"),
api_key: std::env::var("VINTEO_API_KEY").unwrap(),
base: VINTEO_BASE.clone().to_owned(),
api_key: std::env::var("VINTEO_API_KEY")?,
client: Client::builder().user_agent("api-grub").build()?,
})
}