Skip to content

Instantly share code, notes, and snippets.

View hotpocket's full-sized avatar

Brandon hotpocket

View GitHub Profile
@hotpocket
hotpocket / init-letsencrypt.sh
Created June 8, 2024 06:00 — forked from mandiwise/init-letsencrypt.sh
Create dummy certificates to start up nginx so it can request real certificate from Let's Encrypt
#!/bin/bash
# Usage:
# $ chmod +x init-letsencrypt.sh
# $ init-letsencrypt.sh mydomain.com bob@email.com 1
#
# Reference:
# https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
domain=${1}