Skip to content

Commit

Permalink
$FORWARDED_ALLOW_IPS
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Feb 11, 2016
1 parent 8d17fee commit 007123c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,14 +1014,17 @@ class ForwardedAllowIPS(Setting):
cli = ["--forwarded-allow-ips"]
meta = "STRING"
validator = validate_string_to_list
default = "127.0.0.1"
default = os.environ.get("FORWARDED_ALLOW_IPS", "127.0.0.1")
desc = """\
Front-end's IPs from which allowed to handle set secure headers.
(comma separate).
Set to ``*`` to disable checking of Front-end IPs (useful for setups
where you don't know in advance the IP address of Front-end, but
you still trust the environment)
you still trust the environment).
By default, the value of the ``FORWARDED_ALLOW_IPS`` environment
variable. If it is not defined, the default is ``"127.0.0.1"``.
"""


Expand Down

0 comments on commit 007123c

Please sign in to comment.