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

Disable proxy option server wide #453

Closed
Perflyst opened this issue Mar 27, 2019 · 7 comments
Closed

Disable proxy option server wide #453

Perflyst opened this issue Mar 27, 2019 · 7 comments
Labels
enhancement Improvement of an existing feature

Comments

@Perflyst
Copy link
Contributor

Add an option to completely disable proxy videos (expect e.g. livestreams) and also dash serverwide.

I know ppl who do not have unlimited traffic but want to host an instance. If they exceed the limit their traffic will be very pricy. So using less traffic is better for them.

@omarroth omarroth added the enhancement Improvement of an existing feature label Mar 27, 2019
@johnwmail
Copy link

Hi, what is proxy mean?

if enable proxy, then
client/browser --> invidious/server --> proxy server/proxynova --> youtube?
or client/browser --> proxy server/proxynova --> youtube?

and if disable proxy?
client/browser --> youtube
or client/browser --> invidious/server --> youtube

thanks.

@omarroth
Copy link
Contributor

If "Proxy videos?" is enabled, then Invidious will proxy videos through itself, so:
client/browser --> invidious/server --> youtube

If a video is blocked where the instance is hosted, then it will be:
client/browser --> invidious/server --> proxy server --> youtube

If that option is disabled, then it will look like this:
client/browser --> youtube

This is only for videos. Images, thumbnails, and requests for video/channel info are still proxied.

@johnwmail
Copy link

Ok, understand now, thank you.

@omarroth
Copy link
Contributor

omarroth commented Jul 5, 2019

Looking into this right now. From a quick glance, this would appear to disable local=true, livestreams, DASH playback, and the download widget, since they all use proxying.

I think the original issue suggests an exception for livestreams. Should there by any other exceptions?

@Perflyst
Copy link
Contributor Author

Perflyst commented Jul 7, 2019

I don't know what exactly needs the most traffic.
Maybe you can create a basic option to disable "proxy" serverwide with subcategories for e.g. "Download", "Livestream", "Dash" (maybe Livestream and Dash together?)

@omarroth
Copy link
Contributor

omarroth commented Jul 8, 2019

Added with 2cc25b1. Supported options are 'dash', 'livestreams', 'downloads', 'local'. Example config.yml:

disable_proxy:
  - downloads
  - dash

It's also possible to use disable_proxy: true to disable all forms of proxying.

@Perflyst
Copy link
Contributor Author

Perflyst commented Jul 8, 2019

Added to the wiki https://github.com/omarroth/invidious/wiki/Configuration

Works as expected.

@Perflyst Perflyst closed this as completed Jul 8, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants