NodeBB est un logiciel de forum moderne et puissant. Dans ce tutoriel, nous allons vous montrer comment installer NodeBB sur un serveur vps avec Nginx comme proxy.

Prérequis

  • Un serveur vps fonctionnel avec Debian 12 installé.
  • Accès root ou un utilisateur avec des privilèges sudo.
  • Node.js et npm installés.
  • MongoDB ou Redis pour la base de données.

Étape 1 : Installer Node.js et npm

Pour installer Node.js, utilisez les commandes suivantes :

sudo apt update
sudo apt install -y nodejs npm
    

Étape 2 : Installer MongoDB

Pour installer MongoDB, suivez ces étapes :

sudo apt install -y mongodb
sudo systemctl start mongodb
sudo systemctl enable mongodb
    

Étape 3 : Installer NodeBB

Clonez le dépôt NodeBB et installez-le :

git clone -b master https://github.com/NodeBB/NodeBB.git nodebb
cd nodebb
npm install
./nodebb setup
    

Étape 4 : Configurer Nginx

Installez Nginx :

sudo apt install -y nginx
    

Créez un fichier de configuration pour votre site :

sudo nano /etc/nginx/sites-available/nodebb
    

Ajoutez la configuration suivante :

server {
    listen 80;
    server_name votre_domaine.com;
    
    location / {
        proxy_pass http://127.0.0.1:4567;
        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;
    }
}
    

Étape 5 : Activer la configuration de Nginx

Activez votre configuration en créant un lien symbolique :

sudo ln -s /etc/nginx/sites-available/nodebb /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
    

Étape 6 : Démarrer NodeBB

Pour démarrer NodeBB, utilisez la commande suivante :

./nodebb start
    

Conclusion

Vous avez maintenant installé NodeBB sur votre serveur vps avec Nginx Proxy. Profitez de votre nouveau forum !

Windows VPS

Windows VPS UK

Windows VPS

VPS Windows

Serwer VPS Windows

VPS Windows Deutschland

Windows VPS Hosting

VPS Windows España

Windows VPS Nederland

VPS Windows Italia

VPS Windows Portugal

VPS Windows ??????

VPS Windows ???????

VPS Windows ??

VPS Windows Sverige

VPS Windows Norge

VPS Windows ????

VPS Windows Türkiye

Remote Desktop Services (RDS)

RDS CAL (Client Access License)

Remote Desktop VPS

Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting

#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds

vps windows