{"id":3356,"date":"2025-02-20T10:52:27","date_gmt":"2025-05-15T07:40:22","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-nodebb-with-nginx-proxy-on-windows-vps","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-nodebb-with-nginx-proxy-on-windows-vps\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 NodeBB with Nginx Proxy on Windows VPS"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header><\/header>\n<section>\n<h2>Introduction<\/h2>\n<p><strong>NodeBB<\/strong> is an open-source forum software that uses Node.js. It is highly customizable and scalable. In this guide, we will show you how to install NodeBB with Nginx Proxy on a  to ensure that your forum is well-protected, performant, and easily accessible.<\/p>\n<\/section>\n<section>\n<h2>Prerequisites<\/h2>\n<p>Before starting the installation, make sure you have the following:<\/p>\n<ul>\n<li>A  with administrative privileges.<\/li>\n<li>Node.js and npm (Node Package Manager) installed on your system.<\/li>\n<li>Access to the Windows VPS via Remote Desktop Protocol (RDP).<\/li>\n<li>Internet access to download required packages.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Step 1: Install Node.js and npm<\/h2>\n<p>NodeBB requires Node.js to run, so the first step is to install it on your .<\/p>\n<ol>\n<ol>\n<li>Go to the official Node.js download page: <a href=\"https:\/\/nodejs.org\/\" target=\"_blank\" rel=\"follow\">Node.js Download<\/a>.<\/li>\n<li>Download the LTS (Long-Term Support) version of Node.js for Windows.<\/li>\n<li>Run the installer and follow the on-screen instructions to complete the installation.<\/li>\n<li>After installation, verify Node.js and npm were installed correctly by running the following commands in PowerShell:<\/li>\n<\/ol>\n<\/ol>\n<pre>node -v<\/pre>\n<pre>npm -v<\/pre>\n<ol>\n<li>If both commands return version numbers, the installation was successful.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 2: Install MongoDB<\/h2>\n<p>NodeBB requires a database to store data, and MongoDB is one of the supported databases. To install MongoDB:<\/p>\n<ol>\n<ol>\n<li>Visit the MongoDB download page: <a href=\"https:\/\/www.mongodb.com\/try\/download\/community\" target=\"_blank\" rel=\"follow\">MongoDB Download<\/a>.<\/li>\n<li>Choose the Windows VPSversion and download the installer.<\/li>\n<li>Run the installer and follow the prompts to complete the installation.<\/li>\n<li>After installation, ensure MongoDB is running by executing:<\/li>\n<\/ol>\n<\/ol>\n<pre>net start MongoDB<\/pre>\n<\/section>\n<section>\n<h2>Step 3: Install NodeBB<\/h2>\n<p>Once Node.js and MongoDB are installed, you can proceed with installing NodeBB.<\/p>\n<ol>\n<ol>\n<li>Open PowerShell on your  and navigate to the folder where you want to install NodeBB.<\/li>\n<li>Run the following command to install NodeBB:<\/li>\n<\/ol>\n<\/ol>\n<pre>git clone -b master https:\/\/github.com\/NodeBB\/NodeBB.git<\/pre>\n<ol>\n<ol>\n<li>Navigate to the NodeBB directory:<\/li>\n<\/ol>\n<\/ol>\n<pre>cd NodeBB<\/pre>\n<ol>\n<ol>\n<li>Install the required Node.js dependencies using npm:<\/li>\n<\/ol>\n<\/ol>\n<pre>npm install<\/pre>\n<ol>\n<ol>\n<li>Once the installation is complete, configure NodeBB:<\/li>\n<\/ol>\n<\/ol>\n<pre>.\/nodebb setup<\/pre>\n<ol>\n<li>Follow the prompts to configure your NodeBB installation, including setting up the database and other necessary settings.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 4: Set Up Nginx as a Reverse Proxy<\/h2>\n<p>To access NodeBB through a domain or IP address, you need to set up Nginx as a reverse proxy. Follow these steps:<\/p>\n<ol>\n<ol>\n<li>Install Nginx for Windows. Download it from the official website: <a href=\"https:\/\/nginx.org\/en\/download.html\" target=\"_blank\" rel=\"follow\">Nginx Download<\/a>.<\/li>\n<li>Extract the downloaded Nginx zip file to a directory on your Windows VPS.<\/li>\n<li>Edit the Nginx configuration file, typically located at <strong>C:\\nginx\\conf\\nginx.conf<\/strong>, to include a reverse proxy configuration for NodeBB:<\/li>\n<\/ol>\n<\/ol>\n<pre>server {\r\n    listen       80;\r\n    server_name  localhost;\r\n\r\n    location \/ {\r\n        proxy_pass http:\/\/127.0.0.1:4567;\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto $scheme;\r\n    }\r\n}<\/pre>\n<ol>\n<ol>\n<li>Save the changes to the configuration file and restart Nginx.<\/li>\n<li>To start Nginx, open a command prompt in the Nginx folder and run:<\/li>\n<\/ol>\n<\/ol>\n<pre>start nginx<\/pre>\n<ol>\n<li>Check that Nginx is working by visiting <strong>http:\/\/<\/strong> or the domain name you configured.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 5: Start NodeBB<\/h2>\n<p>Finally, start the NodeBB application:<\/p>\n<ol>\n<ol>\n<li>In PowerShell, navigate to the NodeBB directory.<\/li>\n<li>Run the following command to start NodeBB:<\/li>\n<\/ol>\n<\/ol>\n<pre>.\/nodebb start<\/pre>\n<ol>\n<li>NodeBB should now be running and accessible through the Nginx reverse proxy.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>Step 6: Access NodeBB<\/h2>\n<p>Now that NodeBB is running and Nginx is set up as a reverse proxy, you can access your NodeBB forum by navigating to the server&#8217;s IP address or the domain you set up in the browser.<\/p>\n<p>For example: <strong>http:\/\/<\/strong> or <strong>http:\/\/yourdomain.com<\/strong>.<\/p>\n<\/section>\n<section>\n<h2>Conclusion<\/h2>\n<p>Congratulations! You have successfully installed NodeBB with Nginx Proxy on your . You can now customize your forum, add plugins, and start using it for your community.<\/p>\n<\/section>\n<footer>\n<p>\u00a9 2024. For more information on  solutions, visit <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">NetCloud24<\/a>.<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 Introduction NodeBB is an open-source forum software that uses Node.js. It is highly customizable and scalable. In this guide, we will show you how to install NodeBB\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-3356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3356"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3356\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}