1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

[enh] configurable listening http protocol version

This commit is contained in:
Adam Tauber 2016-12-25 23:02:57 +01:00
parent 383160e99a
commit a98bbefbcf
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ server:
secret_key : "ultrasecretkey" # change this! secret_key : "ultrasecretkey" # change this!
base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/" base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/"
image_proxy : False # Proxying image results through searx image_proxy : False # Proxying image results through searx
http_protocol_version : "1.0" # 1.0 and 1.1 are supported
ui: ui:
themes_path : "" # Custom ui themes path - leave it blank if you didn't change themes_path : "" # Custom ui themes path - leave it blank if you didn't change

View File

@ -81,7 +81,7 @@ except ImportError:
# serve pages with HTTP/1.1 # serve pages with HTTP/1.1
from werkzeug.serving import WSGIRequestHandler from werkzeug.serving import WSGIRequestHandler
WSGIRequestHandler.protocol_version = "HTTP/1.1" WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version'])
static_path, templates_path, themes =\ static_path, templates_path, themes =\
get_themes(settings['ui']['themes_path'] get_themes(settings['ui']['themes_path']