feat(08): implement SSOT architecture for network configuration

This commit is contained in:
2026-04-23 13:58:33 +03:00
parent 5978917494
commit a5a460e765
1039 changed files with 138862 additions and 105259 deletions

View File

@@ -75,14 +75,17 @@ Controls the Next.js frontend application behavior and PWA settings.
| `pwa.app_name` | Display name of the PWA | `TFM aInventory` |
### network.yaml
Defines host-side port mappings and SSL/CORS policies.
**SINGLE SOURCE OF TRUTH (SSOT):** This is the master file for your server's network topology. All other domains (Backend CORS, Frontend API URL) are dynamically derived from these settings.
| Variable | Description | Default |
|----------|-------------|---------|
| `application.server_ip` | **MASTER IP** of your server | `localhost` |
| `application.cors_origins`| Extra allowed origins (Subnets/IPs) | - |
| `ports.backend_port` | Host port for backend | `8916` |
| `ports.frontend_port` | Host port for frontend | `8917` |
| `ssl.ssl_enabled` | Enable HTTPS via Caddy | `true` |
| `cors.allowed_origins` | List of allowed origins | `*` |
> **Note:** You only need to change the IP address in **this file**. The system will automatically update the frontend's API URL and the backend's CORS policies upon restart.
### docker.yaml
Resource limits and container orchestration settings.