From 55b29c9c60ac0a920ba8ef68480b1f3495f0cf78 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 9 May 2023 22:29:51 +0330 Subject: changed the docker bind mounts so i dont have to change the cert names manually --- docker-compose.yaml | 3 ++- 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: diff --git a/server.js b/server.js index eea4695..f19900b 100755 --- a/server.js +++ b/server.js @@ -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 ) -- cgit v1.2.3