aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yaml3
-rwxr-xr-xserver.js10
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
)