Compare commits
2 commits
87279cd7d4
...
a1056ba900
Author | SHA1 | Date | |
---|---|---|---|
a1056ba900 | |||
90d6fd3149 |
2 changed files with 25 additions and 1 deletions
24
README.md
24
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.
|
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
|
||||||
|
```
|
|
@ -37,6 +37,7 @@ http {
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name git.gerardgascon.com;
|
server_name git.gerardgascon.com;
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/git.gerardgascon.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/git.gerardgascon.com/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/git.gerardgascon.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/git.gerardgascon.com/privkey.pem;
|
||||||
|
@ -49,6 +50,7 @@ http {
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name obsidian.gerardgascon.com;
|
server_name obsidian.gerardgascon.com;
|
||||||
|
client_max_body_size 128M;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/obsidian.gerardgascon.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/obsidian.gerardgascon.com/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/obsidian.gerardgascon.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/obsidian.gerardgascon.com/privkey.pem;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue