remove secret from app
This commit is contained in:
parent
e146849cef
commit
b203a62696
2 changed files with 3 additions and 1 deletions
|
|
@ -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
3
app.py
|
|
@ -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')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue