# use allowlist only for remote communities, and posts/comments in local communities
# (meaning remote communities will show content from arbitrary instances).
strict_allowlist: true
+ # Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
+ http_fetch_retry_limit: 25
# Number of workers for sending outgoing activities. Search logs for Activity queue stats to
# see information. If running number is consistently close to the worker_count, you should
# increase it.
slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
# Maximum length of local community and user names
actor_name_max_length: 20
- # Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
- http_fetch_retry_limit: 25
}
debug!("Fetching webfinger url: {}", &fetch_url);
*request_counter += 1;
- if *request_counter > context.settings().http_fetch_retry_limit {
+ if *request_counter > context.settings().federation.http_fetch_retry_limit {
return Err(LemmyError::from_message("Request retry limit reached"));
}
static LOCAL_INSTANCE: OnceCell<LocalInstance> = OnceCell::new();
LOCAL_INSTANCE.get_or_init(|| {
let settings = InstanceSettingsBuilder::default()
- .http_fetch_retry_limit(context.settings().http_fetch_retry_limit)
+ .http_fetch_retry_limit(context.settings().federation.http_fetch_retry_limit)
.worker_count(context.settings().federation.worker_count)
.debug(context.settings().federation.debug)
.verify_url_function(|url| check_apub_id_valid(url, &Settings::get()))
/// Maximum length of local community and user names
#[default(20)]
pub actor_name_max_length: usize,
- /// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
- #[default(25)]
- pub http_fetch_retry_limit: i32,
/// Set the URL for opentelemetry exports. If you do not have an opentelemetry collector, do not set this option
#[default(None)]
/// (meaning remote communities will show content from arbitrary instances).
#[default(true)]
pub strict_allowlist: bool,
+ /// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
+ #[default(25)]
+ pub http_fetch_retry_limit: i32,
/// Number of workers for sending outgoing activities. Search logs for "Activity queue stats" to
/// see information. If "running" number is consistently close to the worker_count, you should
/// increase it.