Skip to content

Instantly share code, notes, and snippets.

@akhileshdarjee
Created April 22, 2019 14:11
Show Gist options
  • Select an option

  • Save akhileshdarjee/46bfa1a07ee694153033fbce7faeb7df to your computer and use it in GitHub Desktop.

Select an option

Save akhileshdarjee/46bfa1a07ee694153033fbce7faeb7df to your computer and use it in GitHub Desktop.
Use Proxy in Laravel
Use the following parameters in .env file:
HTTPS_PROXY={http/https://}PROXY_USER:PROXY_PWD@PROXY:PROXY_PORT
(Combination of Proxy Address:Proxy Password@Proxy Address with port, don’t include http/https)
PROXY=xxxxxx (Proxy Name)
PROXY_PORT=xxxx (Proxy Port)
PROXY_USER=xxxxxxxxx (Proxy User Name)
PROXY_PWD=xxxxxxxxx (Proxy User Password)
PROXY_TYPE=CURLPROXY_HTTP
SSL_VERIFYPEER=true (true if SSL, else false)
Include actual values in HTTPS_Proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment