From 4edb2facc96b8e919fe93b789e92b67d78b65b23 Mon Sep 17 00:00:00 2001 From: Arne Baeumler Date: Sun, 11 Jan 2026 21:06:25 +0100 Subject: [PATCH] fix: update paths, use X-Forwarded-Prefix header --- app.py | 2 +- templates/base.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 8d0b78c..c2930c5 100644 --- a/app.py +++ b/app.py @@ -7,7 +7,7 @@ import random import string app = Flask(__name__) -app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1) +app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1, x_prefix=1) app.secret_key = 'eng5iikeiwah3lae4idoo0woh4eiy6Th' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////app/homeschooling.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False diff --git a/templates/base.html b/templates/base.html index c5e9990..0d2028c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,13 +4,13 @@ - - + + {% block head %}Rechentrainer{% endblock %}
- {% block header %}homeRechentrainer{% endblock %} + {% block header %}homeRechentrainer{% endblock %}
{% block content %}{% endblock %}