security: remove credentials from docs, centralize CORS, add reverse proxy support
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
| 3 | Backend Spring Boot API | ✅ Déployé & Fonctionnel |
|
||||
| 4 | Frontend Flutter | ⏳ À faire |
|
||||
| 5 | Tests & Validation | 🔄 En cours |
|
||||
| 6 | Déploiement Production | ✅ Docker sur 192.168.100.33:8090 |
|
||||
| 6 | Déploiement Production | ✅ Docker — https://rayhan-erp.bolbol.tn |
|
||||
| 7 | Rapport de PFE | 🔄 En cours |
|
||||
|
||||
---
|
||||
@@ -88,11 +88,9 @@
|
||||
|
||||
## Infrastructure Serveur
|
||||
|
||||
- **Serveur local** : 192.168.100.33
|
||||
- **SSH** : port 22222, user Best0f
|
||||
- **Portainer** : http://192.168.100.33:9000/
|
||||
- **Gitea** : https://gitea.bolbol.tn
|
||||
- **API REST** : http://192.168.100.33:8090 ✅ En ligne
|
||||
- **API REST (production)** : https://rayhan-erp.bolbol.tn ✅ En ligne
|
||||
- **API REST (local dev)** : http://localhost:8090
|
||||
- **Conteneurs Docker** : `rayhan-mysql` + `rayhan-backend`
|
||||
|
||||
---
|
||||
|
||||
@@ -179,7 +179,7 @@ Password : rayhan_erp_2024
|
||||
|
||||
> MySQL Workbench : https://dev.mysql.com/downloads/workbench/
|
||||
|
||||
**Note :** Sur le serveur de production (192.168.100.33), le port MySQL n'est pas exposé à l'extérieur par mesure de sécurité.
|
||||
**Note :** Sur le serveur de production (localhost), le port MySQL n'est pas exposé à l'extérieur par mesure de sécurité.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
## Configuration de Base
|
||||
|
||||
**URL de base** : `http://192.168.100.33:8090`
|
||||
**URL de base** : `https://rayhan-erp.bolbol.tn`
|
||||
|
||||
### 1. Configurer une Variable d'Environnement Postman
|
||||
|
||||
Dans Postman, créer un environnement "Rayhan ERP" avec :
|
||||
- `baseUrl` = `http://192.168.100.33:8090`
|
||||
- `baseUrl` = `https://rayhan-erp.bolbol.tn`
|
||||
- `token` = (sera rempli automatiquement)
|
||||
|
||||
---
|
||||
|
||||
@@ -204,7 +204,7 @@ La base de données `rayhan_erp_db` contient les tables suivantes :
|
||||
|
||||
## 4.1 Infrastructure
|
||||
|
||||
L'application est déployée sur un serveur NAS Synology (192.168.100.33) via Docker Compose. Deux conteneurs sont en production :
|
||||
L'application est déployée via Docker Compose, accessible publiquement derrière un reverse proxy HTTPS. Deux conteneurs sont en production :
|
||||
|
||||
- **rayhan-mysql** — MySQL 8, base de données `rayhan_erp_db`
|
||||
- **rayhan-backend** — Spring Boot, accessible sur le port **8090**
|
||||
@@ -254,8 +254,8 @@ ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||
|
||||
| Service | URL |
|
||||
|---------|-----|
|
||||
| API REST | http://192.168.100.33:8090 |
|
||||
| Documentation Swagger UI | http://192.168.100.33:8090/swagger-ui/index.html |
|
||||
| API REST | https://rayhan-erp.bolbol.tn |
|
||||
| Documentation Swagger UI | https://rayhan-erp.bolbol.tn/swagger-ui/index.html |
|
||||
| Dépôt source (Gitea) | https://gitea.bolbol.tn/bolbol/rayhan-erp |
|
||||
|
||||
---
|
||||
@@ -272,7 +272,7 @@ L'API intègre **Swagger UI** (SpringDoc OpenAPI 2.5.0), accessible depuis n'imp
|
||||
|
||||
**Procédure de test :**
|
||||
|
||||
1. Ouvrir http://192.168.100.33:8090/swagger-ui/index.html
|
||||
1. Ouvrir https://rayhan-erp.bolbol.tn/swagger-ui/index.html
|
||||
2. Exécuter `POST /api/auth/signin` avec `{"username":"admin","password":"Rayhan2024!"}`
|
||||
3. Copier le token de la réponse
|
||||
4. Cliquer sur **Authorize 🔒** → coller le token → Authorize
|
||||
|
||||
Reference in New Issue
Block a user