mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02:00
improve https rewriting
This commit is contained in:
parent
6e6dbc1bb4
commit
0616d26feb
2 changed files with 7 additions and 2 deletions
|
@ -24,5 +24,7 @@ else:
|
|||
with open(settings_path) as settings_yaml:
|
||||
settings = load(settings_yaml)
|
||||
|
||||
# loade https rules
|
||||
load_https_rules(https_rewrite_path)
|
||||
# load https rules only if https rewrite is enabled
|
||||
if settings.get('server', {}).get('https_rewrite'):
|
||||
# loade https rules
|
||||
load_https_rules(https_rewrite_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue