Skip to content

Instantly share code, notes, and snippets.

View HarshadRanganathan's full-sized avatar
💭
Buy me a coffee (https://ko-fi.com/harshadranganathan)

Harshad Ranganathan HarshadRanganathan

💭
Buy me a coffee (https://ko-fi.com/harshadranganathan)
View GitHub Profile
@HarshadRanganathan
HarshadRanganathan / letsencrypt
Last active March 18, 2021 06:28
Let's Encrypt SSL for Nginx in Amazon Linux AMI instance
# Install wget
yum install wget -y
# Install certbot-auto
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
# Obtain SSL certificate with Nginx plugin for the domain
sudo ./certbot-auto --nginx -d app.com --debug
@HarshadRanganathan
HarshadRanganathan / virtual.conf
Last active May 20, 2019 07:54
HTTPS Reverse Proxy Configuration in Nginx
upstream backend-server {
server backend.com:443;
}
server {
root /home/ec2-user/app/public;
index index.html;
server_name app.com;
location /app-proxy/ {
@HarshadRanganathan
HarshadRanganathan / ec2startup.sh
Last active May 20, 2019 07:54
Install Nginx, Node JS, NPM & GIT in AWS Linux AMI
#!/bin/bash
# Install updates
sudo yum update -y
# Add the CentOS 7 EPEL repository if required
sudo yum install epel-release -y
# Install nginx
sudo yum install nginx -y
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'