Skip to content

Commit

Permalink
remove RSS_FUNNEL_IMAGE_PROXY variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Jul 8, 2024
1 parent fb36893 commit 5fce9b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/filter/image_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,6 @@ impl FeedFilterConfig for Config {
type Filter = ImageProxy;

async fn build(self) -> Result<Self::Filter, ConfigError> {
if !crate::util::is_env_set("RSS_FUNNEL_IMAGE_PROXY")
&& self.settings.is_internal()
{
return Err(ConfigError::FeatureNotSupported {
feature: "image_proxy",
reason:
"RSS_FUNNEL_IMAGE_PROXY is not set, internal image proxy is disabled.",
});
}

Ok(ImageProxy { config: self })
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/server/image_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ lazy_static::lazy_static! {
}

pub fn router() -> Router {
if !util::is_env_set("RSS_FUNNEL_IMAGE_PROXY") {
return Router::new();
}

info!("loaded image proxy: /_image");

use tower_http::cors::AllowOrigin;
Expand Down

0 comments on commit 5fce9b8

Please sign in to comment.