S3Sync.net
February 02, 2014, 01:27:49 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Using S3Sync through a proxy server  (Read 4784 times)
fredo
Newbie
*
Posts: 3


View Profile
« on: December 07, 2007, 05:00:34 AM »

Unless I am mistaken, s3sync will not work if you have to go through a proxy server to reach the net.

A quick modification solved that for me (although it seems to break the --progress option  Grin).

In AWSAuthConnection::initialize

replace
Code:
        @http = Net::HTTP.new(server, port)

with
Code:
        if $PROXY_HOST
          @http = Net::HTTP::Proxy($PROXY_HOST, $PROXY_PORT, $PROXY_USER, $PROXY_PASS).new(server, port)       
        else
          @http = Net::HTTP.new(server, port)
        end

And set the constants $PROXY_HOST, $PROXY_PORT, $PROXY_USER, $PROXY_PASS in your config.yml file.

Besides the --progress having no effect apparently, the rest seems to work fine.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 on: December 07, 2007, 07:47:24 AM »

Well I should be able to make proxy work right.  I'll add it to the list of stuff for the next update.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #2 on: January 06, 2008, 11:52:25 AM »

Will be fixed today; see announce.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!