Skip to content

Instantly share code, notes, and snippets.

@darklinden
Created July 4, 2023 03:25
Show Gist options
  • Save darklinden/984be28ebad92779ef8caa08dc192c7c to your computer and use it in GitHub Desktop.
Save darklinden/984be28ebad92779ef8caa08dc192c7c to your computer and use it in GitHub Desktop.
use docker to generate https cert
rm -rf config
mkdir config
docker run --rm \
--name=swag \
--cap-add=NET_ADMIN \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-e URL=$2 \
-e SUBDOMAINS=$1 \
-e VALIDATION=http \
-p 443:443 \
-p 80:80 \
-v "$(pwd)"/config:/config \
linuxserver/letsencrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment