summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2021-11-17 09:52:05 +0100
committerKristofer Hallin <kristofer@sunet.se>2021-11-17 09:53:12 +0100
commitfc31d040886ddd9495a0318a7272468fe81a215e (patch)
treeeaa5ccdaee6abec69b6e9678f14972abf7c45abd
parentfadb0f24bb55697a1ba34611a4288d12e25065d1 (diff)
* Rename wsgi.py to main.py, we're not using WSGI.
* Added env variable.
-rw-r--r--README.md1
-rw-r--r--docker/collector/supervisord.conf2
-rwxr-xr-xsrc/main.py (renamed from src/wsgi.py)0
3 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 769f999..d5fa7c8 100644
--- a/README.md
+++ b/README.md
@@ -59,6 +59,7 @@ Start CouchDB and the collector. Make sure to give it a username and password:
export COUCHDB_PASSWORD=insecure
export COUCHDB_NAME=test
export COUCHDB_HOSTNAME=couchdb
+ export DOCKER_JWT_PUBKEY_PATH=/tmp/jwt_keys/
docker-compose up
Now the database and the API server should be running, now we can try
diff --git a/docker/collector/supervisord.conf b/docker/collector/supervisord.conf
index 374f4fe..1fef83a 100644
--- a/docker/collector/supervisord.conf
+++ b/docker/collector/supervisord.conf
@@ -3,7 +3,7 @@ nodaemon=true
[program:uvicorn]
directory = /opt/collector/src/
-command = /opt/collector/venv/bin/uvicorn --proxy-headers --port 8000 wsgi:app
+command = /opt/collector/venv/bin/uvicorn --proxy-headers --port 8000 main:app
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
diff --git a/src/wsgi.py b/src/main.py
index 9e028b0..9e028b0 100755
--- a/src/wsgi.py
+++ b/src/main.py