Patches: Browse | Submit New | Admin

[#17425] Improved handling of reverse proxies

Date:
2008-01-23 20:38
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Improved handling of reverse proxies

Detailed description
My reverse proxy (nginx) changes request.host so path_to_image doesn't work as expected. The attached patch allows a
'callback_server' key in facebook.yml, which would contain the publicly visible server and port number, as
in "www.mydomain.com:8000". If the key is set, path_to_image uses it instead of request.host

The patch also covers the Rakefile, so new installations get this key included in the default facebook.yml (and new
users learn about the feature).

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-08-09 18:27
Sender: Gerald Bauer

FYI: The official RFacebook forum/mailing list (including
the core RFacebook developers) is @
http://groups.google.com/group/rfacebook

If you want to get the issue resolved that's the best place
to start. Cheers.
Date: 2008-01-23 20:40
Sender: Victor Costan

I forgot to login before submitting the patch. It's mine. Please
e-mail me if you have any questions.

I know this is a bit hackish and not DRY (repeats the settings
in 'tunnel'). I hope the authors will draw inspiration from this,
not necessarily merge it.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item