Skip to content

Comment installer NodeBB avec un proxy Nginx sur Debian 12

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

NodeBB est un forum moderne et performant basé sur Node.js. Dans ce guide, nous allons vous montrer comment l’installer sur un serveur vps en utilisant Nginx comme reverse proxy.

Prérequis

  • Un serveur vps avec Debian 12 installé.
  • Accès root ou sudo sur le serveur.
  • Node.js et npm installés.
  • MongoDB ou Redis installé comme base de données.

Étape 1 : Installation de Node.js

Tout d’abord, nous allons installer Node.js. Exécutez les commandes suivantes :

sudo apt update
sudo apt install -y nodejs npm

Étape 2 : Installation de MongoDB

Nous allons maintenant installer MongoDB. Exécutez :

sudo apt install -y mongodb

Étape 3 : Installer NodeBB

Créez un répertoire pour NodeBB :

mkdir -p ~/nodebb
cd ~/nodebb
git clone -b master https://github.com/NodeBB/NodeBB.git .

Étape 4 : Configuration de NodeBB

Installez les dépendances et configurez NodeBB :

npm install
./nodebb setup

Suivez les instructions à l’écran pour configurer votre forum.

Étape 5 : Installation de Nginx

Installer Nginx sur votre serveur :

Visual overview of Comment installer NodeBB avec un proxy Nginx sur Debian 12
Visual overview: Comment installer NodeBB avec un proxy Nginx sur Debian 12
sudo apt install -y nginx

Étape 6 : Configurer Nginx comme proxy inverse

Créez un fichier de configuration Nginx :

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

Ajoutez la configuration suivante :

server {
    listen 80;
    server_name votre_domain.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 7 : Activer la configuration de Nginx

Activez la configuration de votre site :

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

Étape 8 : Démarrer NodeBB

Démarrez NodeBB :

./nodebb start

Conclusion

Vous avez maintenant installé NodeBB sur votre serveur vps avec Nginx comme proxy inverse. Vous pouvez accéder à votre forum en visitant http://votre_domain.com.

Pour plus d’informations, consultez la documentation de NodeBB.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Key topics covered in Comment installer NodeBB avec un proxy Nginx sur Debian 12
Key topics covered in this NetCloud24 guide.

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Practical checklist for Comment installer NodeBB avec un proxy Nginx sur Debian 12
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Comment installer NodeBB avec un proxy Nginx sur Debian 12
Comment installer NodeBB avec un proxy Nginx sur Debian 12
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.