diff --git a/searx/preferences.py b/searx/preferences.py index f70aee37..34da1b7c 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -348,7 +348,7 @@ class Preferences(object): } ), 'method': EnumStringSetting( - 'POST', + settings['server'].get('method', 'POST'), choices=('GET', 'POST') ), 'safesearch': MapSetting( diff --git a/searx/settings.yml b/searx/settings.yml index 63685be8..68fd0ee6 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -16,6 +16,7 @@ server: base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/" image_proxy : False # Proxying image results through searx http_protocol_version : "1.0" # 1.0 and 1.1 are supported + method: "POST" # POST queries are more secure as they don't show up in history but may cause problems when using Firefox containers ui: static_path : "" # Custom static path - leave it blank if you didn't change