mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-26 13:30:11 +00:00
c34fffc2c4
fix check_only value for image rate limit Fix image rate limit Add rate limit for image uploads Proxy pictrs requests through Lemmy (fixes #371) Co-authored-by: Felix Ableitner <me@nutomic.com> Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/77
21 lines
549 B
Rust
21 lines
549 B
Rust
pub mod api;
|
|
pub mod federation;
|
|
pub mod feeds;
|
|
pub mod images;
|
|
pub mod index;
|
|
pub mod nodeinfo;
|
|
pub mod webfinger;
|
|
pub mod websocket;
|
|
|
|
use crate::{rate_limit::rate_limiter::RateLimiter, websocket::server::ChatServer};
|
|
use actix::prelude::*;
|
|
use actix_web::*;
|
|
use diesel::{
|
|
r2d2::{ConnectionManager, Pool},
|
|
PgConnection,
|
|
};
|
|
use std::sync::{Arc, Mutex};
|
|
|
|
pub type DbPoolParam = web::Data<Pool<ConnectionManager<PgConnection>>>;
|
|
pub type RateLimitParam = web::Data<Arc<Mutex<RateLimiter>>>;
|
|
pub type ChatServerParam = web::Data<Addr<ChatServer>>;
|