Skip to content

Instantly share code, notes, and snippets.

@bluescreen303
Created August 15, 2011 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluescreen303/1147540 to your computer and use it in GitHub Desktop.
Save bluescreen303/1147540 to your computer and use it in GitHub Desktop.
sample (mockup) mongrel2 config for "headers" filter
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