correct imgur domain

This commit is contained in:
Felix Ableitner 2024-11-25 11:06:10 +01:00
parent cdcaf4b323
commit 545d8c1dc5
2 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@
# in the config, this default is ignored and you need to list imgur explicitly. To proxy imgur # in the config, this default is ignored and you need to list imgur explicitly. To proxy imgur
# requests, specify a noop bypass list, eg `proxy_bypass_domains ["example.org"]`. # requests, specify a noop bypass list, eg `proxy_bypass_domains ["example.org"]`.
proxy_bypass_domains: [ proxy_bypass_domains: [
"imgur.com" "i.imgur.com"
/* ... */ /* ... */
] ]
# Timeout for uploading images to pictrs (in seconds) # Timeout for uploading images to pictrs (in seconds)

View file

@ -93,8 +93,8 @@ pub struct PictrsConfig {
/// imgur.com is bypassed by default to avoid rate limit errors. When specifying any bypass /// imgur.com is bypassed by default to avoid rate limit errors. When specifying any bypass
/// in the config, this default is ignored and you need to list imgur explicitly. To proxy imgur /// in the config, this default is ignored and you need to list imgur explicitly. To proxy imgur
/// requests, specify a noop bypass list, eg `proxy_bypass_domains ["example.org"]`. /// requests, specify a noop bypass list, eg `proxy_bypass_domains ["example.org"]`.
#[default(vec!["imgur.com".to_string()])] #[default(vec!["i.imgur.com".to_string()])]
#[doku(example = "imgur.com")] #[doku(example = "i.imgur.com")]
pub proxy_bypass_domains: Vec<String>, pub proxy_bypass_domains: Vec<String>,
/// Timeout for uploading images to pictrs (in seconds) /// Timeout for uploading images to pictrs (in seconds)