mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-21 15:54:18 +00:00
Stefano Pigozzi
72c0353c90
- Rate limiting - Server at the bottom of the page - New run configurations
8 lines
348 B
Rust
8 lines
348 B
Rust
use micronfig::{required, optional};
|
|
use crate::proxy::ReverseProxyInfoList;
|
|
|
|
required!(REDIS_CONN, String);
|
|
required!(AXUM_HOST, String); // FIXME: Use SocketAddr when possible
|
|
optional!(AXUM_XFORWARDED, ReverseProxyInfoList);
|
|
required!(TODORED_RATE_LIMIT_CONNECTIONS_PER_MINUTE, usize);
|
|
required!(TODORED_RATE_LIMIT_MESSAGES_PER_MINUTE, usize);
|