feat(domain): separate POS to pos.nexusautoparts.com.mx subdomain
- nexusautoparts.com.mx -> Dashboard/Landing (port 5000) - pos.nexusautoparts.com.mx -> POS (port 5001) with static assets proxy - admin.nexusautoparts.com.mx -> Dashboard (port 5000) - Update mobile app configs to point to pos.nexusautoparts.com.mx - Update Caddy docs with new subdomain layout
This commit is contained in:
@@ -6,12 +6,17 @@
|
||||
Add this to `/etc/caddy/Caddyfile` on the Caddy VM (192.168.10.74):
|
||||
|
||||
```caddyfile
|
||||
# Main POS domain
|
||||
# Landing page / Dashboard
|
||||
nexusautoparts.com.mx, www.nexusautoparts.com.mx {
|
||||
reverse_proxy 192.168.10.91:80
|
||||
}
|
||||
|
||||
# Admin dashboard subdomain
|
||||
# POS (point of sale app)
|
||||
pos.nexusautoparts.com.mx {
|
||||
reverse_proxy 192.168.10.91:80
|
||||
}
|
||||
|
||||
# Dashboard admin (optional alternative access)
|
||||
admin.nexusautoparts.com.mx {
|
||||
reverse_proxy 192.168.10.91:80
|
||||
}
|
||||
@@ -30,3 +35,12 @@ sudo caddy reload --config /etc/caddy/Caddyfile
|
||||
```
|
||||
|
||||
Caddy will automatically obtain Let's Encrypt certificates for all domains.
|
||||
|
||||
## DNS Records needed in Hostinger
|
||||
|
||||
| Record | Name | Target |
|
||||
|---|---|---|
|
||||
| A | @ | IP of Caddy VM |
|
||||
| CNAME | www | nexusautoparts.com.mx |
|
||||
| CNAME | pos | nexusautoparts.com.mx |
|
||||
| CNAME | admin | nexusautoparts.com.mx |
|
||||
|
||||
Reference in New Issue
Block a user