BLOG-86 Checking authentication before uploading image #101
@ -20,7 +20,7 @@ impl SessionConfiguration {
|
|||||||
let session_key = Key::from(&session_key_bytes);
|
let session_key = Key::from(&session_key_bytes);
|
||||||
|
|
||||||
let redis_url =
|
let redis_url =
|
||||||
std::env::var("REDIS_URL").unwrap_or_else(|_| "redis://127.0.1:6379".to_string());
|
std::env::var("REDIS_URL").unwrap_or_else(|_| "redis://127.0.0.1:6379".to_string());
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
session_key,
|
session_key,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user