Open readtedium opened 1 year ago
@readtedium Have you considered nginx proxy as a solution?
location /vi/ {
proxy_pass https://img.youtube.com;
}
curl localhost/vi/jNQXAC9IVRw/hqdefault.jpg
This required me to set up a separate NGINX proxy to reach my S3 bucket (this was a good guide), but once I did that, I found @AlekseyArh’s suggestion to be a good solve.
This idea may still be useful for those who don’t want to have to manage an additional NGINX proxy, though.
Bouncing off the great work done in #309, is it possible to add an override, or maybe an alternate? I think it might come in handy to have a default base URL but if you need to grab from a different domain than the default.
I mostly grab from one domain, but sometimes I grab from a second; currently the tool forces me to use long URLs for both, but I think adding the option for additional variables could be useful. One way I could see it working:
In .env:
First example (uses BASE_URL):
Second example (uses ALT_URL):
Third example (with a watermark pulled from the base URL):
The one challenge I see is that if there’s a folder named
ALT_URL
it would override this, but I do think there’s probably a way to solve this, maybe by using a filter?