Skip to content

Commit

Permalink
make MAX_RAW_SIZE configurable via env
Browse files Browse the repository at this point in the history
  • Loading branch information
igorwwwwwwwwwwwwwwwwwwww authored Mar 23, 2018
1 parent 8ca17a8 commit 3afe33c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requestbin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

BIN_TTL = 48*3600
STORAGE_BACKEND = "requestbin.storage.memory.MemoryStorage"
MAX_RAW_SIZE = 1024*10
MAX_RAW_SIZE = int(os.environ.get('MAX_RAW_SIZE', 1024*10))
IGNORE_HEADERS = []
MAX_REQUESTS = 20
CLEANUP_INTERVAL = 3600
Expand Down Expand Up @@ -56,4 +56,4 @@
X-Forwarded-Proto
X-Via
X-Forwarded-Port
""".split("\n")[1:-1]
""".split("\n")[1:-1]

0 comments on commit 3afe33c

Please sign in to comment.