Skip to content

Commit

Permalink
app: Trust X-Forwarded-Proto (#70)
Browse files Browse the repository at this point in the history
app: Trust X-Forwarded-Proto

Bug: T361471
  • Loading branch information
supertassu authored Sep 25, 2024
1 parent 5561941 commit 8590109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-quarry/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
web:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-69 # web tag managed by github actions
tag: pr-70 # web tag managed by github actions

worker:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-69 # worker tag managed by github actions
tag: pr-70 # worker tag managed by github actions
2 changes: 2 additions & 0 deletions quarry/web/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from flask import current_app, Flask, render_template, g
from flask_caching import Cache
from werkzeug.middleware.proxy_fix import ProxyFix

from .config import get_config
from .connections import Connections
Expand Down Expand Up @@ -31,6 +32,7 @@ def kill_context(exception=None):

def create_app(test_config=None):
app = Flask(__name__)
app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1)

if test_config is None:
app.config.update(get_config())
Expand Down

0 comments on commit 8590109

Please sign in to comment.