deployphp / deployer

The PHP deployment tool with support for popular frameworks out of the box
https://deployer.org
MIT License
10.41k stars 1.47k forks source link

Deployer not working behind proxy #3756

Closed herbyxxx closed 6 months ago

herbyxxx commented 6 months ago

When using deployer behind a proxy you keep getting the following error: In Httpie.php line 201: JSON Error: Syntax error

It keeps making requests to the /load url (on localhost I assume?)

  <p><b>Invalid Request</b> error was encountered while trying to process the request:</p>

  <blockquote id="data">
  <pre>GET /load HTTP/1.1
  User-Agent: Deployer 7.3.3
  Accept: */*
  Proxy-Connection: Keep-Alive
  Content-Type: application/json
  Content-Length: 43
  Host: xxxxx:51353

However in my case the host you send that request to is the proxy itself.

There should be a way to remove the proxy for those request or add a way to add curl options e.g. curl --noproxy "*" ...