Created
August 15, 2011 19:30
-
-
Save bluescreen303/1147540 to your computer and use it in GitHub Desktop.
sample (mockup) mongrel2 config for "headers" filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_x_forwarded_proto = Filter(name="/usr/lib/mongrel2/filters/headers.so", settings={ | |
"operation": "set", # set / unset / setIfNull | |
"name": "x-forwarded-proto", | |
"value": "https" # it might be nice to have this available as variable "$proto" | |
}) | |
main = Server( | |
... | |
filters = [add_x_forwarded_proto] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment