React + Node + Nginx with Plesk. Part 2
In the previous part, we connected NodeJs server. https://medium.com/@zenbit_tech/react-node-nginx-with-plesk-part-1-b8cb77688cff
The next step is to add ssl certificates via Plesk panel.
Use “SSL/TSL Certificates” menu to add one.
Proxy server needs to be disabled for a while. Comment these lines.
# location ~ / {
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_pass http://localhost:8080;
#}
and add to same nginx settings field
location ~ /.well-known/{
root /var/www/vhosts/YOUR_DOMAIN_NAME/PATH_TO_ROOT_FOLDER/.well-known;
}
Then go to “Let’s Encrypt” module (install it first if you do not have it in your panel). And click Install button. After you get a success message, uncomment `location ~ / ` in nginx module.
You do not need to change any NodeJs server configuration.
That’s all.
In next part ReactJS application will be installed. https://medium.com/@zenbit_tech/react-node-nginx-with-plesk-part-3-c79734f9a186