diff options
-rw-r--r-- | docker-compose.yaml | 3 | ||||
-rwxr-xr-x | server.js | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml index 79e5d0c..4ca7f8d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,7 +11,8 @@ services: ports: - "9000:9000" volumes: - - /etc/letsencrypt/archive/blog.terminaldweller.com/:/certs/ + - /etc/letsencrypt/live/blog.terminaldweller.com/fullchain.pem:/etc/letsencrypt/live/blog.terminaldweller.com/fullchain.pem:ro + - /etc/letsencrypt/live/blog.terminaldweller.com/privkey.pem:/etc/letsencrypt/live/blog.terminaldweller.com/privkey.pem:ro cap_drop: - ALL environment: @@ -184,8 +184,14 @@ if (process.env.SERVER_DEPLOYMENT_TYPE == "deployment") { spdy .createServer( { - key: fs.readFileSync("/certs/privkey1.pem", "utf-8"), - cert: fs.readFileSync("/certs/fullchain1.pem", "utf-8"), + key: fs.readFileSync( + "/etc/letsencrypt/live/blog.terminaldweller.com/fullchain.pem", + "utf-8" + ), + cert: fs.readFileSync( + "/etc/letsencrypt/live/blog.terminaldweller.com/privkey.pem", + "utf-8" + ), }, app ) |