fix: update paths, use X-Forwarded-Prefix header
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 43s

This commit is contained in:
2026-01-11 21:06:25 +01:00
parent a9271b2e87
commit 4edb2facc9
2 changed files with 4 additions and 4 deletions

2
app.py
View File

@@ -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

View File

@@ -4,13 +4,13 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/static/css/w3.css">
<link rel="stylesheet" href="/static/css/material-icons.css">
<link rel="stylesheet" href="{{ url_for('static', filename='css/w3.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/material-icons.css') }}">
{% block head %}<title>Rechentrainer</title>{% endblock %}
</head>
<body>
<header class="w3-container w3-border-bottom w3-border-blue-grey w3-light-grey w3-margin-bottom" style="position: fixed; top: 0; width: 100vw; height: 3em">
{% block header %}<span><a class="w3-button" href="/"><i class="material-icons w3-xlarge">home</i></a>Rechentrainer</span>{% endblock %}
{% block header %}<span><a class="w3-button" href="{{ url_for('index') }}"><i class="material-icons w3-xlarge">home</i></a>Rechentrainer</span>{% endblock %}
</header>
<div class="w3-container" style="margin-top: 4em; margin-bottom:3em">
{% block content %}{% endblock %}