mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1205 from benoitc/forwarded_allow_ips_env
$FORWARDED_ALLOW_IPS
This commit is contained in:
commit
7db09f1495
@ -1014,7 +1014,7 @@ class ForwardedAllowIPS(Setting):
|
|||||||
cli = ["--forwarded-allow-ips"]
|
cli = ["--forwarded-allow-ips"]
|
||||||
meta = "STRING"
|
meta = "STRING"
|
||||||
validator = validate_string_to_list
|
validator = validate_string_to_list
|
||||||
default = "127.0.0.1"
|
default = os.environ.get("FORWARDED_ALLOW_IPS", "127.0.0.1")
|
||||||
desc = """\
|
desc = """\
|
||||||
Front-end's IPs from which allowed to handle set secure headers.
|
Front-end's IPs from which allowed to handle set secure headers.
|
||||||
(comma separate).
|
(comma separate).
|
||||||
@ -1022,6 +1022,9 @@ class ForwardedAllowIPS(Setting):
|
|||||||
Set to ``*`` to disable checking of Front-end IPs (useful for setups
|
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
|
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"``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user