remove secret from app
This commit is contained in:
parent
e146849cef
commit
b203a62696
@ -2,5 +2,6 @@ FROM python:3.12-alpine
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
ENV FLASK_THERAPY_SECRET=${FLASK_THERAPY_SECRET}
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENTRYPOINT ["gunicorn", "--config", "gunicorn_config.py", "app:app"]
|
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
|
from arztapi.APIHandler import APIHandler
|
||||||
|
|
||||||
app = Flask(__name__)
|
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')
|
locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user