diff options
author | terminaldweller <devi@terminaldweller.com> | 2023-06-16 18:26:59 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2023-06-16 18:26:59 +0000 |
commit | 7f5c81b13ab35a0e2486112428f33cf5265ea5e9 (patch) | |
tree | 3a865c847d2af41ebe8ae18c98ad95708d5aca04 | |
parent | changed the api endpoint to include version number, updated for new poetry in... (diff) | |
download | devourer-7f5c81b13ab35a0e2486112428f33cf5265ea5e9.tar.gz devourer-7f5c81b13ab35a0e2486112428f33cf5265ea5e9.zip |
added the certs for deployment as absolute paths so we dont have to do anything for cert renewal
-rwxr-xr-x | devourer/docker-entrypoint.sh | 4 | ||||
-rw-r--r-- | docker-compose.yaml | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/devourer/docker-entrypoint.sh b/devourer/docker-entrypoint.sh index db76c6b..c8616c5 100755 --- a/devourer/docker-entrypoint.sh +++ b/devourer/docker-entrypoint.sh @@ -4,8 +4,8 @@ if [ "$SERVER_DEPLOYMENT_TYPE" = "deployment" ]; then uvicorn devourer:app \ --host 0.0.0.0 \ --port 80 \ - --ssl-certfile /certs/server.cert \ - --ssl-keyfile /certs/server.key \ + --ssl-certfile /etc/letsencrypt/live/mila.terminaldweller.com/fullchain.pem \ + --ssl-keyfile /etc/letsencrypt/live/mila.terminaldweller.com/privkey.pem \ --no-proxy-headers \ --no-server-header \ --no-date-header diff --git a/docker-compose.yaml b/docker-compose.yaml index fd29695..b3441e2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -25,6 +25,8 @@ services: volumes: - devourer-nltk-data:/root/nltk_data/ - devourer-hg-cache:/huggingface/cache/ + - /etc/letsencrypt/live/mila.terminaldweller.com/privkey.pem:/etc/letsencrypt/live/mila.terminaldweller.com/privkey.pem + - /etc/letsencrypt/live/mila.terminaldweller.com/fullchain.pem:/etc/letsencrypt/live/mila.terminaldweller.com/fullchain.pem tika: image: apache/tika:2.0.0 networks: |