mirror of
https://gitverse.ru/kpa39l/netbox.git
synced 2026-09-29 09:55:11 +00:00
14 lines
304 B
Python
14 lines
304 B
Python
from granian.utils.proxies import wrap_wsgi_with_proxy_headers
|
|
from netbox.wsgi import application
|
|
|
|
application = wrap_wsgi_with_proxy_headers(
|
|
application,
|
|
trusted_hosts=[
|
|
'10.0.0.0/8',
|
|
'172.16.0.0/12',
|
|
'192.168.0.0/16',
|
|
'fc00::/7',
|
|
'fe80::/10',
|
|
],
|
|
)
|