.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.flaskfix Namespace Reference

Classes

class  ReverseProxyPathFix
 

Functions

 patch_application (app)
 

Function Documentation

◆ patch_application()

searx.flaskfix.patch_application ( app)

Definition at line 73 of file flaskfix.py.

73def patch_application(app):
74 # serve pages with HTTP/1.1
75 WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version'])
76 # patch app to handle non root url-s behind proxy & wsgi
77 app.wsgi_app = ReverseProxyPathFix(ProxyFix(app.wsgi_app))

References searx.format.