1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Configure proxy to hide Image Proxy's backend origin IP

Discussion in 'XenForo Questions and Support' started by Abracadaniel, Sep 14, 2015.

  1. Abracadaniel

    Abracadaniel Member

    Hey there,
    I wonder if it's possible to configure some http or socks5 proxy for Image Proxy system?

    In `/library/Zend/Http/Client/Adapter/Proxy.php` I see this block:
    class Zend_Http_Client_Adapter_Proxy extends Zend_Http_Client_Adapter_Socket
         * Parameters array
         * @var array
    protected $config = array(
    'ssltransport'  => 'ssl',
    'sslcert'       => null,
    'sslpassphrase' => null,
    'sslusecontext' => false,
    'proxy_host'    => '',
    'proxy_port'    => 8080,
    'proxy_user'    => '',
    'proxy_pass'    => '',
    'proxy_auth'    => Zend_Http_Client::AUTH_BASIC,
    'persistent'    => false
    Maybe there is some way to pass those in config.php?

    Thanks in advance =)
  2. Mike

    Mike XenForo Developer Staff Member

    It would require custom development.
    Abracadaniel likes this.
  3. Abracadaniel

    Abracadaniel Member

    I see. So currently the nearest option is to hardcode those params here?
    We're trying to hide out backend's IPs.

Share This Page