Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: disable sources #12

Closed
jrowny opened this issue Jun 18, 2014 · 2 comments
Closed

Feature Request: disable sources #12

jrowny opened this issue Jun 18, 2014 · 2 comments

Comments

@jrowny
Copy link
Contributor

jrowny commented Jun 18, 2014

I know that most sources won't work without them being configured, but is there a way to disable sources other than deleting them from the sources folder in the node modules folder? I don't want someone to be able to serve/cache a youtube thumbnail behind our domain.

Thanks!

@jimmynicol
Copy link
Owner

That is an excellent point, I will add that as a feature environment variable.

@jimmynicol
Copy link
Owner

Hi @jrowny,

Version 0.8.1 is out now with the ability to exclude sources. The environment variable EXCLUDE_SOURCES takes a comma delimited string of the source names you wish to turn off. Then if you call one of these it will return a 500.

devmark pushed a commit to devmark/image-resizer that referenced this issue Aug 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants