-
Notifications
You must be signed in to change notification settings - Fork 1
SSL
-
stop prod server
-
execute cmd
sudo certbot certonly --standalone -d lockessential.com -d www.lockessential.com
-
Ref: To obtain a cert using a built-in “standalone” webserver (you may need to temporarily stop your existing webserver, if any) for example.com and www.example.com: https://certbot.eff.org/#ubuntuxenial-other
-
copy certificates in ./lockessential/config/sslcerts folder from ~/etc/letsencrypt/archive
-
before that permission need to be modified by followind shell cmd
sudo chown -R hvpulok archive
-
rename key relevant files to cert.pem and key.pem
-
Add process.env.NODE_ENV = 'secure' in config/env/local-production.js
Server without nginx https://stackoverflow.com/a/23281417/5178733 https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps