feat: add xavia-ota & rustfs & update INFRA.md
This commit is contained in:
@@ -55,11 +55,14 @@ graph TB
|
||||
%% ─── VPS Monitoring ─────────────────────────────────────────
|
||||
subgraph MonVPS["VPS Monitoring — uber-stup.club"]
|
||||
subgraph MonNet["Docker network : monitoring_net"]
|
||||
MNGINX["🔀 Nginx RP\n:80 / :443 ← public\ndozzle.uber-stup.club\nwazuh.uber-stup.club"]
|
||||
MNGINX["🔀 Nginx RP\n:80 / :443 ← public\ndozzle / wazuh\nrustfs / s3 / ota"]
|
||||
DOZZLE["📋 Dozzle\nLogs temps réel\n:8080 ← interne"]
|
||||
WAZUH_M["🔍 Wazuh Manager\n:1514 agents\n:1515 enroll\n:514 syslog"]
|
||||
WAZUH_I["🗂️ Wazuh Indexer\nOpenSearch :9200"]
|
||||
WAZUH_D["📊 Wazuh Dashboard\nKibana :5601"]
|
||||
RUSTFS["🗃️ RustFS\nS3-compatible :9000\nConsole :9001"]
|
||||
XAVIA["🚀 Xavia OTA\nNext.js :3000"]
|
||||
XAVIA_DB["🗄️ PostgreSQL 16\nxavia_db ← interne"]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -100,11 +103,19 @@ graph TB
|
||||
DOCKERHUB -->|"docker pull"| BACK
|
||||
DOCKERHUB -->|"docker pull"| FRONT
|
||||
|
||||
%% ─── CI/CD mobile → OTA ────────────────────────────────────
|
||||
GHA_A -->|"eas build pre-prod"| XAVIA
|
||||
GHA_C -->|"eas build pre-prod"| XAVIA
|
||||
|
||||
%% ─── Monitoring ─────────────────────────────────────────────
|
||||
MNGINX --> DOZZLE
|
||||
MNGINX --> WAZUH_D
|
||||
MNGINX -->|"rustfs.uber-stup.club"| RUSTFS
|
||||
MNGINX -->|"s3.uber-stup.club"| RUSTFS
|
||||
MNGINX -->|"ota.uber-stup.club"| XAVIA
|
||||
WAZUH_D --> WAZUH_I
|
||||
WAZUH_M --> WAZUH_I
|
||||
XAVIA --> XAVIA_DB
|
||||
DOZZLE -->|"remote agent :7007"| ProdVPS
|
||||
DOZZLE -->|"remote agent :7007"| PreProdVPS
|
||||
```
|
||||
@@ -196,11 +207,14 @@ Même stack que la production, déployé depuis la branche `pre-prod` via `SERVE
|
||||
|
||||
| Conteneur | Image | Ports | Rôle |
|
||||
|---|---|---|---|
|
||||
| `nginx` | `nginx:alpine` | **80, 443** (public) | Reverse proxy monitoring |
|
||||
| `monitoring_nginx` | `nginx:alpine` | **80, 443** (public) | Reverse proxy monitoring |
|
||||
| `dozzle` | `amir20/dozzle:latest` | 8080 (interne) | Logs Docker temps réel |
|
||||
| `wazuh.manager` | `wazuh/wazuh-manager:4.9.2` | 1514, 1515, 514/udp | SIEM — collecte agents |
|
||||
| `wazuh.indexer` | `wazuh/wazuh-indexer:4.9.2` | 9200 (interne) | OpenSearch (stockage events) |
|
||||
| `wazuh.dashboard` | `wazuh/wazuh-dashboard:4.9.2` | 5601 (interne) | Kibana (visualisation) |
|
||||
| `wazuh.manager` | `wazuh/wazuh-manager:4.14.5` | 1514, 1515, 514/udp | SIEM — collecte agents |
|
||||
| `wazuh.indexer` | `wazuh/wazuh-indexer:4.14.5` | 9200 (interne) | OpenSearch (stockage events) |
|
||||
| `wazuh.dashboard` | `wazuh/wazuh-dashboard:4.14.5` | 5601 (interne) | Kibana (visualisation) |
|
||||
| `rustfs` | `rustfs/rustfs:latest` | 9000 S3, 9001 console (internes) | Stockage objet S3-compatible (APKs) |
|
||||
| `xavia` | `xaviaio/xavia-ota:latest` | 3000 (interne) | Serveur OTA Expo (Next.js) |
|
||||
| `xavia_db` | `postgres:16-alpine` | 5432 (interne) | Base de données Xavia |
|
||||
|
||||
### Accès publics
|
||||
|
||||
@@ -208,6 +222,25 @@ Même stack que la production, déployé depuis la branche `pre-prod` via `SERVE
|
||||
|---|---|
|
||||
| `https://dozzle.uber-stup.club` | Interface logs Docker |
|
||||
| `https://wazuh.uber-stup.club` | Dashboard SIEM Wazuh |
|
||||
| `https://rustfs.uber-stup.club` | Console RustFS (stockage APKs) |
|
||||
| `https://s3.uber-stup.club` | API S3 RustFS |
|
||||
| `https://ota.uber-stup.club` | Dashboard & API Xavia OTA |
|
||||
|
||||
### Xavia OTA — configuration app Expo
|
||||
|
||||
```json
|
||||
"updates": {
|
||||
"url": "https://ota.uber-stup.club/api/manifest",
|
||||
"codeSigningCertificate": "./certs/certificate.pem",
|
||||
"codeSigningMetadata": {
|
||||
"keyid": "main",
|
||||
"algorithm": "rsa-v1_5-sha256"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Clé privée RSA 4096 stockée sur le serveur dans `/home/ubuntu/xavia-keys/private-key.pem`.
|
||||
Le `certificate.pem` doit être commité dans le repo mobile sous `mobile/certs/certificate.pem`.
|
||||
|
||||
### Dozzle — agents distants
|
||||
|
||||
|
||||
Reference in New Issue
Block a user