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

Comments

@Perflyst
Copy link
Contributor

commented Mar 27, 2019

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.

@johnwmail

This comment has been minimized.

Copy link

commented Mar 28, 2019

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

This comment has been minimized.

Copy link
Owner

commented Mar 28, 2019

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

This comment has been minimized.

Copy link

commented Mar 28, 2019

Ok, understand now, thank you.

@omarroth

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Contributor Author

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Contributor Author

commented Jul 8, 2019

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

Works as expected.

@Perflyst Perflyst closed this Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.