This PR adds the ability to specify additional external sources through environment variables.
cf. the discussions in #24, #16 (used mariusa's code as a starting point)
For example, to add Wikipedia as an external source, set the following environment variable:
No tests yet beyond the added image to index.html - could use guidance on how to add more robust tests for this sort of feature. Hope someone finds this helpful!
So I had been avoiding supporting external sources with some previous requests, however I really like the whitelist approach here. Thanks again for your effort!
This PR adds the ability to specify additional external sources through environment variables. cf. the discussions in #24, #16 (used mariusa's code as a starting point)
For example, to add Wikipedia as an external source, set the following environment variable:
Then you can request images beginning with the provided path using the
ewikipedia
modifier, eg:translates to:
No tests yet beyond the added image to index.html - could use guidance on how to add more robust tests for this sort of feature. Hope someone finds this helpful!