- Completed Action 1.1.2.1: Installed @openapitools/openapi-generator-cli - Completed Action 1.1.2.2: Created generate-types.sh script - Added swagger annotations to cmd/modern-server/main.go - Regenerated swagger.yaml with proper info section - Successfully generated TypeScript types to src/types/generated/ The script generates types from veza-backend-api/openapi.yaml using typescript-axios generator and creates barrel exports.
40 lines
825 B
Markdown
40 lines
825 B
Markdown
# Incus/LXD Deployment Configuration
|
|
|
|
Ce dossier contient les configurations pour déployer Veza avec Incus (LXD).
|
|
|
|
## Prérequis
|
|
|
|
```bash
|
|
# Installer Incus
|
|
sudo snap install incus
|
|
|
|
# Initialiser Incus (première fois)
|
|
sudo incus admin init
|
|
```
|
|
|
|
## Déploiement
|
|
|
|
Utiliser le Makefile :
|
|
|
|
```bash
|
|
# Déployer tout avec Incus
|
|
make deploy-incus
|
|
|
|
# Déployer un service spécifique
|
|
make incus-deploy-service SERVICE=backend-api
|
|
```
|
|
|
|
## Architecture
|
|
|
|
Chaque service est déployé dans un container Incus séparé :
|
|
- `veza-backend-api` : Backend Go
|
|
- `veza-chat-server` : Serveur Chat Rust
|
|
- `veza-stream-server` : Serveur Stream Rust
|
|
- `veza-web` : Frontend React
|
|
- `veza-haproxy` : Reverse Proxy
|
|
|
|
## Réseau
|
|
|
|
Le réseau `veza-network` est créé automatiquement avec :
|
|
- Subnet: 10.10.10.0/24
|
|
- NAT activé pour l'accès externe
|