aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yaml4
-rwxr-xr-xserver.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
index ac05a0f..1c70974 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -9,7 +9,7 @@ services:
restart: unless-stopped
ports:
- "9000:9000"
- cap_drop:
- - ALL
+ volumes:
+ - /etc/letsencrypt/archive/blog.terminaldweller.com/:/certs/
networks:
webnet:
diff --git a/server.js b/server.js
index fb10881..231f70b 100755
--- a/server.js
+++ b/server.js
@@ -95,8 +95,8 @@ app.use((err, req, res) => {
});
https.createServer({
- key: fs.readFileSync('/certs/server.key'),
- cert: fs.readFileSync("/certs/server.cert")
+ key: fs.readFileSync("/certs/privkey1.pem","utf-8"),
+ cert: fs.readFileSync("/certs/fullchain1.pem","utf-8")
},app).listen(9000);
// app.listen(9000);