This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

gooderhamster949
gooderhamster949

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

cupids-bow14277
cupids-bow14277

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);

joseph13898
joseph13898

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();

RichLove
RichLove

Is the fix from cupids just for the installer or does this work for subsquent updates after installation?

Last updated

delc82
delc82

After installation you need to remove 'install_files' directory so a guess the solution above won't work for updates.

RichLove
RichLove

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

delc82
delc82

Could you please provide your solution? It would help others having the same problem.

monabo23793
monabo23793

....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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.