fix: update paths, use X-Forwarded-Prefix header
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 43s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 43s
This commit is contained in:
2
app.py
2
app.py
@@ -7,7 +7,7 @@ import random
|
|||||||
import string
|
import string
|
||||||
|
|
||||||
app = Flask(__name__)
|
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.secret_key = 'eng5iikeiwah3lae4idoo0woh4eiy6Th'
|
||||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////app/homeschooling.db'
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////app/homeschooling.db'
|
||||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<link rel="stylesheet" href="/static/css/w3.css">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/w3.css') }}">
|
||||||
<link rel="stylesheet" href="/static/css/material-icons.css">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/material-icons.css') }}">
|
||||||
{% block head %}<title>Rechentrainer</title>{% endblock %}
|
{% block head %}<title>Rechentrainer</title>{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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">
|
<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>
|
</header>
|
||||||
<div class="w3-container" style="margin-top: 4em; margin-bottom:3em">
|
<div class="w3-container" style="margin-top: 4em; margin-bottom:3em">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user