docs(deployment): update server setup guide with wizard.lu domain
Some checks failed
Some checks failed
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -353,7 +353,7 @@ Before setting up Caddy, point your domain's DNS to the server. In your domain r
|
||||
| AAAA | `flower` | `2a01:4f8:1c1a:b39c::1` | 300 |
|
||||
|
||||
!!! tip "DNS propagation"
|
||||
Set TTL to 300 (5 minutes) initially. DNS changes can take up to 24 hours to propagate globally, but usually complete within 30 minutes. Verify with: `dig api.yourdomain.com`
|
||||
Set TTL to 300 (5 minutes) initially. DNS changes can take up to 24 hours to propagate globally, but usually complete within 30 minutes. Verify with: `dig api.wizard.lu`
|
||||
|
||||
## Step 14: Reverse Proxy with Caddy (TODO)
|
||||
|
||||
@@ -368,18 +368,18 @@ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' \
|
||||
sudo apt update && sudo apt install caddy
|
||||
```
|
||||
|
||||
Configure `/etc/caddy/Caddyfile` (replace `yourdomain.com` with your actual domain):
|
||||
Configure `/etc/caddy/Caddyfile` (replace `wizard.lu` with your actual domain):
|
||||
|
||||
```caddy
|
||||
api.yourdomain.com {
|
||||
api.wizard.lu {
|
||||
reverse_proxy localhost:8001
|
||||
}
|
||||
|
||||
git.yourdomain.com {
|
||||
git.wizard.lu {
|
||||
reverse_proxy localhost:3000
|
||||
}
|
||||
|
||||
flower.yourdomain.com {
|
||||
flower.wizard.lu {
|
||||
reverse_proxy localhost:5555
|
||||
}
|
||||
```
|
||||
@@ -428,10 +428,10 @@ docker compose --profile full ps
|
||||
curl http://localhost:8001/health
|
||||
|
||||
# Caddy proxy with SSL
|
||||
curl https://api.yourdomain.com/health
|
||||
curl https://api.wizard.lu/health
|
||||
|
||||
# Gitea
|
||||
curl https://git.yourdomain.com
|
||||
curl https://git.wizard.lu
|
||||
```
|
||||
|
||||
---
|
||||
@@ -440,11 +440,11 @@ curl https://git.yourdomain.com
|
||||
|
||||
| Service | Internal | External | Domain (via Caddy) |
|
||||
|---|---|---|---|
|
||||
| Wizamart API | 8000 | 8001 | `api.yourdomain.com` |
|
||||
| Wizamart API | 8000 | 8001 | `api.wizard.lu` |
|
||||
| PostgreSQL | 5432 | 5432 | (internal only) |
|
||||
| Redis | 6379 | 6380 | (internal only) |
|
||||
| Flower | 5555 | 5555 | `flower.yourdomain.com` |
|
||||
| Gitea | 3000 | 3000 | `git.yourdomain.com` |
|
||||
| Flower | 5555 | 5555 | `flower.wizard.lu` |
|
||||
| Gitea | 3000 | 3000 | `git.wizard.lu` |
|
||||
| Caddy | — | 80, 443 | (reverse proxy) |
|
||||
|
||||
## Directory Structure on Server
|
||||
|
||||
Reference in New Issue
Block a user