← Retour

🖥️ Audit Serveur Note de Frais

Date : Janvier 2026 | Serveur : srv1194599.hstgr.cloud | IP : 72.62.25.71


🌐 Services Actifs

ServicePortDescription
nginx80, 443, 8080-8082Reverse proxy / serveur web
n8n5678 (Docker)Automatisation workflows
PostgreSQL5432Base de données
ClicPratic API3001API backend
SMS API3000Service SMS
Doctolib Webhook5000Intégration Doctolib

🔗 URLs Principales

ApplicationURL
Note de Fraishttps://note-frais.srv1194599.hstgr.cloud
n8nhttps://n8n.srv1194599.hstgr.cloud
API Factures/api/get-cache.php?scan_key=2026-01

🗄️ Base de Données PostgreSQL

Connexion notes_frais_db

ParamètreValeur
Hostlocalhost (ou host.docker.internal depuis Docker)
Databasenotes_frais_db
Usernotes_frais_user
PasswordNotesF2026Secure
Port5432

Tables

TableDescription
scan_factures_cacheCache des scans de factures IA
factures_iaFactures Anthropic
factures_mailmeteorFactures Mailmeteor
factures_twilioFactures Twilio
factures_google_workspaceFactures Google
factures_lovableFactures Lovable

🐳 Docker

ConteneurImageIP
n8n-n8n-1n8n:2.2.4172.18.0.2
n8n-traefik-1traefik172.18.0.4
n8n-note-fraisphp:8.2-cli-alpine172.18.0.3
Config : /docker/n8n/docker-compose.yml
Extra hosts : host.docker.internal → host-gateway

📁 Structure Fichiers

/var/www/note-frais/
├── index.html          # Interface principale
├── aide.html           # Page d'aide
├── favicon.ico
├── api/
│   └── get-cache.php   # API lecture PostgreSQL
├── configuration/
│   ├── index.html      # Cette page
│   └── audit-serveur.md
└── credentials/

/docker/n8n/
├── docker-compose.yml
└── docker-compose.yml.backup

🔄 Workflows n8n

WorkflowWebhookDescription
Scan Factures IA v2/webhook/scan-factures-iaScan PDFs → PostgreSQL
Note de Frais COMPLET/webhook/note-fraisGénère PDF + justificatifs

🛠️ Commandes Utiles

Redémarrer les services

# PostgreSQL
sudo systemctl restart postgresql

# nginx
sudo systemctl reload nginx

# n8n (Docker)
cd /docker/n8n && docker compose restart

# PHP-FPM
sudo systemctl restart php8.3-fpm

Logs

# nginx
tail -f /var/log/nginx/error.log

# n8n
docker logs -f n8n-n8n-1

Tester les connexions

# PostgreSQL
PGPASSWORD=NotesF2026Secure psql -h localhost -U notes_frais_user -d notes_frais_db -c "SELECT 1;"

# API cache
curl "https://note-frais.srv1194599.hstgr.cloud/api/get-cache.php?scan_key=2026-01"

# Webhook scan
curl "https://n8n.srv1194599.hstgr.cloud/webhook/scan-factures-ia?annee=2026&mois=01"

✅ Modifications Janvier 2026


Dernière mise à jour : 25 janvier 2026