Simply follow this script below: 1yum install epel-release -y 2yum install certbot python-certbot-apache mod_ssl -y 3certbot --apache Create a cron job which renews certification once a week. 1crontab -e 10 0,12 * * * python -C 'import random; import time; time.sleep(random.random() * 3600)' && certbot …
Read MoreFirst off, install nginx on the server machine. 1yum update 2yum install epel-release 3yum install nginx Edit the nginx config file then. 1cd /etc/nginx/nginx.conf 2vim nginx.conf Edit the file like this: 1server_name domain.com; If you are not going to use domain name, a public ip address would also work instead of …
Read MorePM2 is a process manager for nodejs apps. It daemonizes apps built with nodejs, which means run-as-service. Let’s install PM2 using npm. 1npm install -g pm2@latest Now you can start your app using pm2 like so: 1pm2 start app.js Next, register the app as startup process. 1pm2 startup systemd 2pm2 save You can check the …
Read MoreCI/CD Build History You might have ever been stuck in continuous deployment with codeship. Hacking principle of CI/CD is all the same in other platforms like CircleCI, Codefresh, TeamCity, etc. Okay, let’s get started. First off, connect your version control app such as github, gitlab or bitbucket to the Codeship.\ …
Read MoreAuto Login With SSH Today I am going to share you how to login to a cloud server without using password. Let’s say there is a server and your local machine, assuming you can login to the server using some kind of credentials. First off, you should generate a new local public key on your local machine. Chdir to the …
Read More