Commit f0d01c10 authored by Morten Brekkevold's avatar Morten Brekkevold
Browse files

Get app settings from environment

parent 1337580f
......@@ -3,4 +3,8 @@ FROM python:3.8
RUN pip install gunicorn
RUN pip install gunicorn git+https://scm.uninett.no/cnaas/mist-argus.git@master
RUN mkdir /app
COPY settings.py /app/
ENV MIST_ARGUS_SETTINGS /app/settings.py
CMD ["gunicorn", "--log-level=debug", "--bind", "0.0.0.0:8000", "mist_argus.webhook:app"]
import os
MIST_SECRET = os.getenv("MIST_SECRET")
ARGUS_API_URL = os.environ["ARGUS_API_URL"]
ARGUS_API_TOKEN = os.environ["ARGUS_API_TOKEN"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment