make graphQL playground private and add CDN URL variable

This commit is contained in:
Andrea Toska 2025-05-12 11:26:14 +02:00
commit cc20eac02b
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2
3 changed files with 21 additions and 11 deletions

View file

@ -119,6 +119,10 @@ async fn launch() -> _ {
env::var("S3_PASSWD").expect("S3_PASSWD not specified").into_boxed_str()
);
pub static CDN_URL: Lazy<Box<str>> = Lazy::new(||
env::var("CDN_URL").expect("CDN_URL not specified").into_boxed_str()
);
let s3_client = ClientBuilder::new(S3_URL.clone())
.provider(Some(Box::new(StaticProvider::new(&S3_USER, &S3_PASSWD, None))))
.build()