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

Support proxies for PeerTube #4346

Merged
merged 5 commits into from
Aug 25, 2021
Merged

Support proxies for PeerTube #4346

merged 5 commits into from
Aug 25, 2021

Conversation

smilekison
Copy link
Contributor

@smilekison smilekison commented Aug 23, 2021

Description

This pull request is made to solve the issue in response to #4202. This functionality is useful for the corporate office who wish to run PeerTube behind the Proxy environment. With this update, the PeerTube checks for the availability of proxy addresses in the OS Environment. The process in which PeerTube runs is as follow:

  1. Corporate offices can run PeerTube behind Proxy by providing HTTPS_PROXY or HTTP_PROXY (case sensitive: must be UPPERCASE & in URL format) in the OS environment variable.

  2. If the Proxy variable is not set in the OS Environment, the PeerTube runs without proxy.

We have already shared the detailed version of Architecture and the code in the respective issue and we got approval to create a pull request by the owner of PeerTube. We have tested the application with test coverage and the respective documentation can be found in the following link.

https://docs.google.com/document/d/1Hg7fKbGnAqPmZsfbzvozH36LjGkmnqITK0oAxntBv4o/edit?usp=sharing

Related issues

Fixes #4202

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this PR does not update server code
  • 🙋 no, because I need help

Co-authored-by: Sijan Bhattarai bhattaraisijan@outlook.com
Co-authored-by: Julesh Shrestha juliusshrestha29@gmail.com
Co-authored-by: Durgaraj Karki raazkarkee405@gmail.com

@smilekison smilekison changed the title Updated with latest code Support proxies for HTTP requests used by PeerTube Aug 23, 2021
@smilekison smilekison changed the title Support proxies for HTTP requests used by PeerTube Support proxies for PeerTube Aug 23, 2021
server/helpers/requests.ts Outdated Show resolved Hide resolved
server/middlewares/proxy.ts Outdated Show resolved Hide resolved
server/middlewares/proxy.ts Outdated Show resolved Hide resolved
server/middlewares/proxy.ts Outdated Show resolved Hide resolved
server/middlewares/proxy.ts Outdated Show resolved Hide resolved
server/middlewares/proxy.ts Outdated Show resolved Hide resolved
support/docker/production/Dockerfile.buster Outdated Show resolved Hide resolved
support/docker/production/docker-compose.yml Outdated Show resolved Hide resolved
@Chocobozzz Chocobozzz merged commit 8729a87 into Chocobozzz:develop Aug 25, 2021
@Chocobozzz
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support proxies for HTTP requests used by PeerTube
2 participants