mirror of https://github.com/searxng/searxng.git
[fix] handle proxied https scheme with uwsgi
This commit is contained in:
parent
590ffdb562
commit
91f7c031d5
|
@ -29,6 +29,7 @@ import hashlib
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from urllib import urlencode
|
from urllib import urlencode
|
||||||
|
from werkzeug.contrib.fixers import ProxyFix
|
||||||
from flask import (
|
from flask import (
|
||||||
Flask, request, render_template, url_for, Response, make_response,
|
Flask, request, render_template, url_for, Response, make_response,
|
||||||
redirect, send_from_directory
|
redirect, send_from_directory
|
||||||
|
@ -652,6 +653,8 @@ def run():
|
||||||
|
|
||||||
application = app
|
application = app
|
||||||
|
|
||||||
|
app.wsgi_app = ProxyFix(application.wsgi_app)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run()
|
run()
|
||||||
|
|
Loading…
Reference in New Issue