1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-21 15:54:18 +00:00
todocolors/todored/src/config.rs
Stefano Pigozzi 72c0353c90
Version 0.3.0
- Rate limiting
- Server at the bottom of the page
- New run configurations
2023-10-09 16:22:30 +02:00

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);