Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app: Trust X-Forwarded-Proto #70

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading