This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm running behind a proxy and would like to set it up for package installation. I dodgied it up for the installer to get it to work but would like to set it correctly for the installation. I've searched through the code and see that it's a method/property, but how and where do I actually set it? I'm happy for someone to just point me along the right path (create a widget or whatever for settings) I just need to know where to start :)
Cheers Tone
Edit 'install_files\php\Installer.php'.
Add curl_setopt($curl, CURLOPT_PROXY, '10.10.10.10:80');
after each line of $curl = $this->prepareServerRequest($uri, $params);
Thanks cupids-bow14277 - this helped steer me in the right direction... I had no idea whether this would be possible behind this locked down network. I actually just added it once in the prepareServerRequest function just after the curl = curl_init();
Is the fix from cupids just for the installer or does this work for subsquent updates after installation?
Last updated
After installation you need to remove 'install_files' directory so a guess the solution above won't work for updates.
yeah that's right, I modify one of core Network files after each update with proxy settings. Not ideal but is a workaround for now
....a long time you ask...my answer vi vendor/october/rain/src/Network/Http.php and add curl_setopt($curl, CURLOPT_PROXY, 'http://your_proxy:00' ); after : ... $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $this->url); curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
1-8 of 8