Make sure use_x_forward_for and trusted_proxies must config together (#15804)
* Make sure use_x_forward_for and trusted_proxies must config together * Fix unit test
This commit is contained in:
parent
ee180c51cf
commit
6f2000f5e2
3 changed files with 33 additions and 7 deletions
|
@ -159,9 +159,7 @@ class TestCheckConfig(unittest.TestCase):
|
|||
'login_attempts_threshold': -1,
|
||||
'server_host': '0.0.0.0',
|
||||
'server_port': 8123,
|
||||
'trusted_networks': [],
|
||||
'trusted_proxies': [],
|
||||
'use_x_forwarded_for': False}
|
||||
'trusted_networks': []}
|
||||
assert res['secret_cache'] == {secrets_path: {'http_pw': 'abc123'}}
|
||||
assert res['secrets'] == {'http_pw': 'abc123'}
|
||||
assert normalize_yaml_files(res) == [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue