From bb3b3457cfb34ae6e0acd4eddbd77b52bdf34e11 Mon Sep 17 00:00:00 2001 From: Mathias Date: Wed, 9 Sep 2026 22:21:38 +0200 Subject: [PATCH] feat(portal): configure Paymenter client portal with Pterodactyl automation and free 0.00 EUR products --- Idées/SERVEUR_ADMIN_103_PAYMENTER_CLIENT.md | 48 +++++++------ site-web/index.html | 7 +- site-web/offres.html | 76 +++++++++++---------- 3 files changed, 69 insertions(+), 62 deletions(-) diff --git a/Idées/SERVEUR_ADMIN_103_PAYMENTER_CLIENT.md b/Idées/SERVEUR_ADMIN_103_PAYMENTER_CLIENT.md index 603cd58..bc88574 100644 --- a/Idées/SERVEUR_ADMIN_103_PAYMENTER_CLIENT.md +++ b/Idées/SERVEUR_ADMIN_103_PAYMENTER_CLIENT.md @@ -10,7 +10,7 @@ - **Type** : Conteneur LXC Debian 12 Bookworm (Non-privilégié, `features: nesting=1`) - **Adresse IP Statique Locale** : `192.168.1.53/24` - **Passerelle** : `192.168.1.254` (Bbox Fibre) -- **Domaine Public Sécurisé** : `https://client.forgium.fr` (Routé par Caddy CT 100) +- **Domaine Public Sécurisé** : `https://client.forgium.fr` (Routé par Caddy CT 100 vers `192.168.1.53:80`) - **Statut** : Opérationnel (`running`) --- @@ -25,42 +25,46 @@ --- ## 3. Pile Logicielle & Architecture -- **Serveur Web** : Nginx (`nginx.service`) écoutant sur le port local 80 -- **Moteur PHP** : PHP 8.2-FPM (`php8.2-fpm.service`) - - Modules activés : `curl`, `mbstring`, `xml`, `bcmath`, `zip`, `gd`, `intl`, `pdo_mysql` +- **Serveur Web** : Nginx (`nginx.service`) configuré pour `/var/www/paymenter/public` +- **Moteur PHP** : PHP 8.3-FPM (`php8.3-fpm.service` via Sury PPA Debian 12) + - Modules activés : `curl`, `mbstring`, `xml`, `bcmath`, `zip`, `gd`, `intl`, `pdo_mysql`, `redis`, `igbinary` - **Base de Données** : MariaDB Server 10.11 (`mariadb.service`) - - Base : `paymenter` + - Base : `paymenter` (UTF-8 mb4) - Utilisateur : `paymenter` - Mot de passe de référence : `ForgiumPay2026Secure` -- **Cache & Sessions** : Redis Server (`redis-server.service`) -- **Worker d'Orchestration** : `paymenter.service` (Queue Worker Laravel) -- **Cron Planificateur** : `* * * * * php /var/www/paymenter/artisan schedule:run` +- **Cache & Sessions** : Redis Server (`redis-server.service` sur `127.0.0.1:6379`) +- **Worker d'Orchestration** : `paymenter.service` (Queue Worker Laravel systemd daemon) +- **Cron Planificateur** : `* * * * * php8.3 /var/www/paymenter/artisan schedule:run` (crontab de www-data) - **Application Path** : `/var/www/paymenter` --- -## 4. Interconnexions API & Flux Automatisés -- **Passerelle Pterodactyl** : - - URL cible interne : `http://192.168.1.51` (CT 101) ou public `https://panel.forgium.fr` - - Clé Application : Générée sur Pterodactyl avec droits complets (`Servers`, `Users`, `Nodes`, `Allocations`) -- **Workflow de Livraison Instantanée (0.00 €)** : - 1. Le client s'inscrit sur `https://client.forgium.fr`. - 2. Il choisit une formule gratuite (Bot Discord, Serveur Minecraft). - 3. Il valide le panier à **0.00 €** sans moyen de paiement bancaire requis. - 4. Paymenter déclenche l'API Pterodactyl : - - Création du compte client sur Pterodactyl avec son adresse e-mail. - - Déploiement automatique du conteneur dans le bon Nest & Egg sur Wings (CT 102). - 5. Le client reçoit ses accès et peut immédiatement gérer son serveur. +## 4. Interconnexion Pterodactyl & Automatisation +- **Serveur Extension Configuré** : + - Nom : `Forgium Pterodactyl Node Cluster` + - URL Panel : `https://panel.forgium.fr` + - Clé Application : Générée avec permissions complètes (`Servers: 3`, `Nodes: 3`, `Allocations: 3`, `Users: 3`, `Locations: 3`, `Nests: 3`, `Eggs: 3`) + - Test de connectivité API : Validé avec succès (`bool(true)`) +- **Catalogue de Produits en Production (0.00 €)** : + 1. **Minecraft Paper - Starter Free** (`minecraft-paper-free`) : Nest 1 (Minecraft), Egg 5 (Paper), 1536 Mo RAM, 5 Go NVMe, 1.5 vCPU. + 2. **Discord Bot Node.js - 24/7 Free** (`discord-bot-nodejs-free`) : Nest 5 (Discord Bots), Egg 15 (NodeJS), 512 Mo RAM, 2 Go NVMe, 1 vCPU. + 3. **Discord Bot Python - 24/7 Free** (`discord-bot-python-free`) : Nest 5 (Discord Bots), Egg 16 (Python), 512 Mo RAM, 2 Go NVMe, 1 vCPU. +- **Workflow de Provisioning Automatique** : + - Dès validation d'une commande gratuite à 0.00 € par un client : + 1. Création transparente du compte client sur Pterodactyl (identique e-mail/nom). + 2. Création et allocation de port automatique sur `wings-node-01` (CT 102). + 3. Déploiement et démarrage du serveur de conteneur. + 4. Bouton direct dans l'espace client redirigeant vers `https://panel.forgium.fr/server/{uuid}`. --- ## 5. Commandes de Maintenance Utiles ```bash # Vérifier l'état des services du portail -pct exec 103 -- systemctl is-active nginx php8.2-fpm mariadb redis-server paymenter +pct exec 103 -- systemctl is-active nginx php8.3-fpm mariadb redis-server paymenter # Exécuter les tâches planifiées manuellement -pct exec 103 -- bash -c "cd /var/www/paymenter && php artisan schedule:run" +pct exec 103 -- bash -c "cd /var/www/paymenter && php8.3 artisan schedule:run" # Consulter les logs d'erreurs pct exec 103 -- tail -n 50 /var/www/paymenter/storage/logs/laravel-*.log diff --git a/site-web/index.html b/site-web/index.html index 40a65a7..e64b63c 100644 --- a/site-web/index.html +++ b/site-web/index.html @@ -38,7 +38,7 @@ @@ -133,9 +133,10 @@ @@ -46,66 +46,67 @@
-
APPLICATION
+
GRATUIT 0.00 €

Bot Discord & Apps

-

Idéal pour héberger vos bots en Python, Node.js ou Java 24/7 avec logs en direct.

+

Hébergez vos bots en Python, Node.js ou Java 24/7 avec console interactive et auto-restart.

- 1.99 € - / mois + 0.00 € + / mois (Offre Gratuite)
- Commander + Déployer Gratuitement →
-
COMMUNAUTÉ
-

Minecraft Pro & Rust

-

Pour les modpacks lourds, serveurs mini-jeux et communautés de joueurs actives.

+
DÉCOUVERTE 0.00 €
+

Minecraft Community

+

Pour projets associatifs, serveurs Discord et équipes de test en phase de développement.

- 8.99 € - / mois + 0.00 € + / mois (Sponsorisé)
- Commander + Commander (0.00 €)
@@ -171,9 +172,10 @@