summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-02-07 12:28:36 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-02-07 12:28:36 +0100
commit91f7c031d54a8df193cb75d4bc560caa9caf5427 (patch)
treecaa1bd071e2a11eb621333f08ba623aac01fe488 /searx
parent590ffdb562919700702b443ec368eb4899866c40 (diff)
[fix] handle proxied https scheme with uwsgi
Diffstat (limited to 'searx')
-rw-r--r--searx/webapp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 79af5c905..253e50486 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()