gmta / velocita-proxy

Velocita - Composer caching reverse proxy
MIT License
4 stars 1 forks source link

using behind corporate proxy #1

Open John-jk opened 1 day ago

John-jk commented 1 day ago

Hello. Is it possible to use this library behind a corporate proxy server (using NAT is not possible for now)? At the moment I can't access packages on the Internet, because as far as I understand nginx is not able to explicitly use proxy servers for proxying.

As a result, the following scheme should be obtained: server with the application -> velocita-proxy -> corporate proxy server (squid) -> repo.packagist.org | api.github.com | codeload.github.com ...

gmta commented 1 day ago

You're right that it currently is not possible with the configuration that velocita-proxy offers. I think that how it needs to work, is as follows:

Does that sound about right?

John-jk commented 1 day ago

I'm not sure, but I found a couple of articles on Google that also advised using nginx upstream , but I haven't been able to set it up that way yet. If you can confirm that it will work, I'll try it further.