Skip to content

Instantly share code, notes, and snippets.

@jcelliott
Forked from glenbot/launch_requestbin.py
Created January 23, 2014 00:03
Show Gist options
  • Select an option

  • Save jcelliott/8570161 to your computer and use it in GitHub Desktop.

Select an option

Save jcelliott/8570161 to your computer and use it in GitHub Desktop.
Bootstrap file to run Requestbin locally
import os
from requestbin import app
from requestbin.storage.memory import MemoryStorage
app.config['bind_address'] = ('0.0.0.0', int(os.environ.get("PORT", 5000)))
app.config['ignore_headers'] = """
X-Varnish
X-Forwarded-For
X-Heroku-Dynos-In-Use
X-Request-Start
X-Heroku-Queue-Wait-Time
X-Heroku-Queue-Depth
X-Real-Ip
X-Forwarded-Proto
X-Via
X-Forwarded-Port
""".split("\n")[1:-1]
app.config['storage_backend'] = MemoryStorage(1000)
app.run()
@jcelliott
Copy link
Copy Markdown
Author

Updated to work with newest version of requestbin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment