remove secret from app

This commit is contained in:
Lea 2024-10-14 19:58:24 +02:00
parent e146849cef
commit b203a62696
2 changed files with 3 additions and 1 deletions

View File

@ -2,5 +2,6 @@ FROM python:3.12-alpine
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENV FLASK_THERAPY_SECRET=${FLASK_THERAPY_SECRET}
EXPOSE 5000
ENTRYPOINT ["gunicorn", "--config", "gunicorn_config.py", "app:app"]

3
app.py
View File

@ -6,7 +6,8 @@ from forms.SearchForm import SearchForm
from arztapi.APIHandler import APIHandler
app = Flask(__name__)
app.secret_key = "nosecretkey"
app.config.from_prefixed_env()
app.secret_key = app.config["THERAPY_SECRET"]
locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')