on master help sign in
[fix] handle proxied https scheme with uwsgi
commit91f7c031d54a8df193cb75d4bc560caa9caf5427 authorAdam Tauber <asciimoo@gmail.com> dateSat 7 Feb 2015, 12:28 (12 years ago) parent590ffdb
1 file changed+3
searx/webapp.py+3
searx/webapp.py+3
@@ -29,6 +29,7 @@ import hashlib
2929
3030from datetime import datetime, timedelta
3131from urllib import urlencode
32+from werkzeug.contrib.fixers import ProxyFix
3233from flask import (
3334 Flask, request, render_template, url_for, Response, make_response,
3435 redirect, send_from_directory
@@ -652,6 +653,8 @@ def run():
652653
653654application = app
654655
656+app.wsgi_app = ProxyFix(application.wsgi_app)
657+
655658
656659if __name__ == "__main__":
657660 run()