Skip to content

Instantly share code, notes, and snippets.

View dreamsparkx's full-sized avatar
👑

Gaurav Bharti dreamsparkx

👑
  • PayPal
  • New Delhi
View GitHub Profile
@enricofoltran
enricofoltran / main.go
Last active June 26, 2024 12:16
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active July 2, 2024 20:47
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: