From 90d6fd31490f9a8a9e63b783eca9c2226c3fb6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerard=20Gasc=C3=B3n?= Date: Mon, 12 May 2025 14:25:46 +0200 Subject: [PATCH] feat: improved guide on readme --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b6918a..0434e50 100644 --- a/README.md +++ b/README.md @@ -24,4 +24,26 @@ All subsequent domains I want to point to a home server service will have a CNAM ``` git.gerardgascon.com. IN CNAME vps.gerardgascon.com. -``` \ No newline at end of file +``` + +## Steps to add a new service + +1. Add CNAME record to DNS +2. Modify nginx.conf to add support for the new service: + ```nginx configuration + server { + listen 443 ssl; + server_name <>; + + ssl_certificate /etc/letsencrypt/live/<>/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/<>/privkey.pem; + + location / { + proxy_pass http://<>:<>/; + } + } + ``` +3. Request SSL certificate and deploy: + ```shell + docker compose stop nginx && certbot certonly --standalone -d <> --expand && docker compose up -d + ``` \ No newline at end of file