2

Is there a config setting to be able to set a proxy in Craft? WordPress has something like this...

define('WP_PROXY_HOST', 'url_here);
define('WP_PROXY_PORT', 'port_here');

I was thinking a config setting like the following would be great...

'setProxy' => array(
    'host' => 'url_here',
    'port' => 'port_here'
),

Thanks, David

Goldyberg
  • 45
  • 3
  • I'm having a hard time finding any documentation for those constants. Do you know of any? – Brad Bell Jul 16 '14 at 15:32
  • I assume it's for making all of Craft's outbound requests (updating, etc.) point to a proxy server for internet access? – Brad Bell Jul 16 '14 at 17:57
  • Yup that's correct. It's not obviously available in the WP codex but http://codex.wordpress.org/HTTP_API has a couple paragraphs. "...WordPress 2.8, compression, cookie support and proxy support were added." – Goldyberg Jul 17 '14 at 00:08
  • Example...http://www.wprecipes.com/wordpress-fetch-file-through-proxy – Goldyberg Jul 17 '14 at 00:09

1 Answers1

2

Currently, it's not possible, but I'll add it to our "todo" list!

Brad Bell
  • 67,440
  • 6
  • 73
  • 143