From 91f7c031d54a8df193cb75d4bc560caa9caf5427 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 7 Feb 2015 12:28:36 +0100 Subject: [PATCH] [fix] handle proxied https scheme with uwsgi --- searx/webapp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searx/webapp.py b/searx/webapp.py index 79af5c9..253e504 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -29,6 +29,7 @@ import hashlib from datetime import datetime, timedelta from urllib import urlencode +from werkzeug.contrib.fixers import ProxyFix from flask import ( Flask, request, render_template, url_for, Response, make_response, redirect, send_from_directory @@ -652,6 +653,8 @@ def run(): application = app +app.wsgi_app = ProxyFix(application.wsgi_app) + if __name__ == "__main__": run()