Compare commits

..

No commits in common. "fd813b04b6564885385a990ea9998955db5888b7" and "dfe52ddc49ff0c6367f6cddc517f0497add0cc36" have entirely different histories.

2 changed files with 5 additions and 9 deletions

View File

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

View File

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