1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 00:04:18 +00:00
todocolors/todored/src/config.rs

9 lines
348 B
Rust
Raw Normal View History

2023-09-29 07:32:42 +00:00
use micronfig::{required, optional};
use crate::proxy::ReverseProxyInfoList;
2023-07-29 17:22:02 +00:00
required!(REDIS_CONN, String);
required!(AXUM_HOST, String); // FIXME: Use SocketAddr when possible
2023-09-29 07:32:42 +00:00
optional!(AXUM_XFORWARDED, ReverseProxyInfoList);
required!(TODORED_RATE_LIMIT_CONNECTIONS_PER_MINUTE, usize);
required!(TODORED_RATE_LIMIT_MESSAGES_PER_MINUTE, usize);