Loading README.md +23 −1 Original line number Diff line number Diff line Loading @@ -25,3 +25,25 @@ All subsequent domains I want to point to a home server service will have a CNAM ``` git.gerardgascon.com. IN CNAME vps.gerardgascon.com. ``` ## 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 <<url>>; ssl_certificate /etc/letsencrypt/live/<<url>>/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/<<url>>/privkey.pem; location / { proxy_pass http://<<tailnet_ip>>:<<service_port>>/; } } ``` 3. Request SSL certificate and deploy: ```shell docker compose stop nginx && certbot certonly --standalone -d <<url>> --expand && docker compose up -d ``` No newline at end of file Loading
README.md +23 −1 Original line number Diff line number Diff line Loading @@ -25,3 +25,25 @@ All subsequent domains I want to point to a home server service will have a CNAM ``` git.gerardgascon.com. IN CNAME vps.gerardgascon.com. ``` ## 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 <<url>>; ssl_certificate /etc/letsencrypt/live/<<url>>/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/<<url>>/privkey.pem; location / { proxy_pass http://<<tailnet_ip>>:<<service_port>>/; } } ``` 3. Request SSL certificate and deploy: ```shell docker compose stop nginx && certbot certonly --standalone -d <<url>> --expand && docker compose up -d ``` No newline at end of file