diff --git a/integrationos-api/src/config.rs b/integrationos-api/src/config.rs index 7131ca41..ed83709e 100644 --- a/integrationos-api/src/config.rs +++ b/integrationos-api/src/config.rs @@ -20,7 +20,6 @@ pub struct Config { #[envconfig(from = "CACHE_SIZE", default = "100")] pub cache_size: u64, #[envconfig(from = "ACCESS_KEY_CACHE_TTL_SECS", default = "1800")] - // Half hour access key ttl by default pub access_key_cache_ttl_secs: u64, #[envconfig(from = "ACCESS_KEY_WHITELIST_REFRESH_INTERVAL_SECS", default = "60")] pub access_key_whitelist_refresh_interval_secs: u64, @@ -28,13 +27,13 @@ pub struct Config { pub connection_cache_ttl_secs: u64, #[envconfig(from = "ENGINEERING_ACCOUNT_ID", default = "engineering_account")] pub engineering_account_id: String, - #[envconfig(from = "CONNECTION_DEFINITION_CACHE_TTL_SECS", default = "120")] + #[envconfig(from = "CONNECTION_DEFINITION_CACHE_TTL_SECS", default = "86400")] pub connection_definition_cache_ttl_secs: u64, - #[envconfig(from = "CONNECTION_OAUTH_DEFINITION_CACHE_TTL_SECS", default = "120")] + #[envconfig(from = "CONNECTION_OAUTH_DEFINITION_CACHE_TTL_SECS", default = "86400")] pub connection_oauth_definition_cache_ttl_secs: u64, - #[envconfig(from = "CONNECTION_MODEL_SCHEMA_TTL_SECS", default = "3600")] + #[envconfig(from = "CONNECTION_MODEL_SCHEMA_TTL_SECS", default = "86400")] pub connection_model_schema_cache_ttl_secs: u64, - #[envconfig(from = "CONNECTION_MODEL_DEFINITION_CACHE_TTL_SECS", default = "3600")] + #[envconfig(from = "CONNECTION_MODEL_DEFINITION_CACHE_TTL_SECS", default = "86400")] pub connection_model_definition_cache_ttl_secs: u64, #[envconfig(from = "SECRET_CACHE_TTL_SECS", default = "300")] pub secret_cache_ttl_secs: u64, diff --git a/integrationos-api/src/endpoints/unified.rs b/integrationos-api/src/endpoints/unified.rs index bb4030d2..38471f11 100644 --- a/integrationos-api/src/endpoints/unified.rs +++ b/integrationos-api/src/endpoints/unified.rs @@ -1,3 +1,4 @@ +use super::{get_connection, INTEGRATION_OS_PASSTHROUGH_HEADER}; use crate::{config::Headers, metrics::Metric, server::AppState}; use axum::{ extract::{Path, Query, State}, @@ -21,8 +22,6 @@ use serde_json::{json, Value}; use std::{collections::HashMap, sync::Arc}; use tracing::error; -use super::{get_connection, INTEGRATION_OS_PASSTHROUGH_HEADER}; - pub fn get_router() -> Router> { Router::new() .route("/:model/:id", get(get_request)) diff --git a/integrationos-event/src/config.rs b/integrationos-event/src/config.rs index 2c51ac13..ab8e239b 100644 --- a/integrationos-event/src/config.rs +++ b/integrationos-event/src/config.rs @@ -18,11 +18,11 @@ pub struct EventCoreConfig { pub cache: CacheConfig, #[envconfig(nested = true)] pub db: DatabaseConfig, - #[envconfig(from = "CONNECTION_CACHE_TTL_SECS", default = "3600")] + #[envconfig(from = "CONNECTION_CACHE_TTL_SECS", default = "86400")] pub connection_cache_ttl_secs: u64, - #[envconfig(from = "CONNECTION_MODEL_SCHEMA_TTL_SECS", default = "3600")] + #[envconfig(from = "CONNECTION_MODEL_SCHEMA_TTL_SECS", default = "86400")] pub connection_model_schema_cache_ttl_secs: u64, - #[envconfig(from = "CONNECTION_MODEL_DEFINITION_CACHE_TTL_SECS", default = "3600")] + #[envconfig(from = "CONNECTION_MODEL_DEFINITION_CACHE_TTL_SECS", default = "86400")] pub connection_model_definition_cache_ttl_secs: u64, #[envconfig(from = "SECRET_CACHE_TTL_SECS", default = "300")] pub secret_cache_ttl_secs: u64,