initial commit

This commit is contained in:
y.campiontrebouta@innotexnas.ovh
2026-02-04 19:04:46 +01:00
commit abb51904d7
27 changed files with 4011 additions and 0 deletions

64
DEPLOYMENT.md Normal file
View File

@@ -0,0 +1,64 @@
# Proxy Configuration pour Production
# Utilisez ce fichier comme base pour configurer votre serveur web
# NGINX Configuration Example
# ==========================
# server {
# listen 80;
# server_name admin.nationglory.com;
#
# # Redirect to HTTPS
# return 301 https://$server_name$request_uri;
# }
#
# server {
# listen 443 ssl http2;
# server_name admin.nationglory.com;
#
# ssl_certificate /etc/ssl/certs/your-cert.crt;
# ssl_certificate_key /etc/ssl/private/your-key.key;
#
# client_max_body_size 100M;
#
# location / {
# proxy_pass http://localhost:3000;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }
# }
# Apache Configuration Example
# ============================
# <VirtualHost *:80>
# ServerName admin.nationglory.com
# Redirect permanent / https://admin.nationglory.com/
# </VirtualHost>
#
# <VirtualHost *:443>
# ServerName admin.nationglory.com
# SSLEngine on
# SSLCertificateFile /etc/ssl/certs/your-cert.crt
# SSLCertificateKeyFile /etc/ssl/private/your-key.key
#
# ProxyPreserveHost On
# ProxyPass / http://localhost:3000/
# ProxyPassReverse / http://localhost:3000/
#
# RequestHeader set X-Forwarded-Proto "https"
# RequestHeader set X-Forwarded-Port "443"
# </VirtualHost>
# Environment Variables
# ======================
# Set these in production:
# NODE_ENV=production
# SESSION_SECRET=use-a-strong-random-key-here
# PORT=3000 (internal, proxy on 80/443)