Environment Matrix
หน้านี้เป็น template สำหรับกรอก environment จริงของ CCR โดยไม่ hardcode secret ลง repo
| Environment | Customer Web | Backoffice | API Gateway / Backend | Database | หมายเหตุ |
|---|---|---|---|---|---|
| Local | http://localhost:* | http://localhost:* | local services | local DB | ใช้ .env.local / user secrets |
| Dev | TBD | https://admin-dev.chiccarrent.com | TBD | Dev DB | ใช้สำหรับ QA automation |
| Staging | TBD | TBD | TBD | Staging DB | สำหรับ UAT |
| Production | TBD | TBD | TBD | Production DB | ห้ามใส่ secret ในเอกสาร |
Environment variables
เก็บค่า sensitive ผ่าน env vars เท่านั้น เช่น
- Auth0 domain/client/secret
- API base URLs
- Database connection string
- Omise keys/webhook secret
- Storage credentials
- Recaptcha keys