@@ -82,7 +82,7 @@ Create `/etc/nginx/sites-available/tigerpath`:
8282``` nginx
8383server {
8484 listen 80;
85- server_name your-domain.com www.your-domain.com ;
85+ server_name path.tigerapps.org ;
8686
8787 client_max_body_size 20m;
8888
@@ -106,11 +106,23 @@ sudo nginx -t
106106sudo systemctl reload nginx
107107```
108108
109- ## 7. Enable HTTPS (Let’s Encrypt)
109+ ## 7. Configure DNS in Cloudflare (` path.tigerapps.org ` )
110+
111+ In Cloudflare (zone: ` tigerapps.org ` ), create the DNS record:
112+
113+ - ` A ` record: ` path ` -> ` <EC2_PUBLIC_IP> `
114+
115+ Recommended Cloudflare settings:
116+
117+ - Start with ` Proxy status = DNS only ` during initial certificate setup
118+ - After HTTPS is working, switch to ` Proxied ` if you want Cloudflare proxy/CDN/WAF
119+ - In ** SSL/TLS** , use ` Full ` during setup, then ` Full (strict) ` after Let’s Encrypt is installed
120+
121+ ## 8. Enable HTTPS (Let’s Encrypt)
110122
111123``` bash
112124sudo apt-get install -y certbot python3-certbot-nginx
113- sudo certbot --nginx -d your-domain.com -d www.your-domain.com
125+ sudo certbot --nginx -d path.tigerapps.org
114126```
115127
116128Test renewal:
@@ -119,11 +131,11 @@ Test renewal:
119131sudo certbot renew --dry-run
120132```
121133
122- ## 8 . Operational Commands
134+ ## 9 . Operational Commands
123135
124136``` bash
125137# update app code
126- git pull --ff-only origin main
138+ git pull --ff-only origin master
127139
128140# rebuild/restart app
129141docker compose -f docker-compose.prod.yml up -d --build
@@ -136,7 +148,7 @@ docker compose -f docker-compose.prod.yml logs -f web
136148docker compose -f docker-compose.prod.yml logs -f redis
137149```
138150
139- ## 9 . GitHub Actions CI/CD
151+ ## 10 . GitHub Actions CI/CD
140152
141153Two workflows are included:
142154- ` .github/workflows/ci.yml ` (test/build on PRs + pushes)
@@ -164,7 +176,7 @@ CD workflow executes on EC2:
1641763 . ` python manage.py migrate ` inside ` web `
1651774 . basic health output via ` docker compose ps `
166178
167- ## 10 . Architecture Recap
179+ ## 11 . Architecture Recap
168180
169181- Postgres: external RDS (` DATABASE_URL ` in ` .env ` )
170182- Redis: local Docker container on EC2 (` redis ` service)
0 commit comments