April 2019
Intermediate to advanced
490 pages
12h 6m
English
Now that your domain is set up, it's time to configure NGINX as a frontend server to connect your domain with your Node.js instance. NGINX will process all the requests for you so that you can focus on improving your Node.js application.
Connect to your server as before and install nginx with the following command:
sudo apt install nginx
After that, you'll have to edit the configuration files of NGINX, which are located at /etc/nginx/sites-enabled/default. Simply edit your default file with vim:
sudo vim /etc/nginx/sites-enabled/default
Then, add the following code to be able to use a domain with your Node.js server:
upstream nodejs { server socialmusic.online:9000;}server { listen 80; server_name socialmusic.online; gzip ...Read now
Unlock full access