-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support proxies for HTTP requests used by PeerTube #4202
Comments
Transparent proxy or with user and pass authentication? |
I don't use transparent proxy or with user and pass authentication. |
Problem: PeerTube 3.2.x does not support proxy Packages used: Proposed Solution:
We create custom defination inside default.yml file as below:
We use hpagent HttpsProxyAgent to resolve the proxy inside server/helpers/requests.ts file inside peertubeGot=got.extend({ ..... }).
Should we proceed to create a pull request with the mentioned solution? @Chocobozzz |
Seems good @smilekison, please create a PR Some things:
|
@Chocobozzz we have changed our Architecture a little. We have removed the flag (Enabled:true) in the production.yml file. And also, we changed middleware to only accept proxy from OS_ENV. We have prepared the following two architectures and we would like to know which approach is better?
|
I would use the second one: it's the same behaviour than before where we did not have any complain :) |
Describe the current behavior
After updating to 3.2.x, it fails to retrieve the plugin list.
I use peertube behind corporate proxy, and in 3.1.x, I was able to search and install plugins by setting the environment variables
http_proxy
andhttps_proxy
.I guess it because of http library.
Since v3.2.x, http library is changed from request to Got.
request support http_proxy, https_proxy with environment variables, but Got needs to use
tunnel
orhpagent
library for supporing proxy.Additional information
PeerTube instance:
console log:
The text was updated successfully, but these errors were encountered: