Skip to content

Instantly share code, notes, and snippets.

@TimWolla
Created December 3, 2015 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimWolla/bbf181e04dbf4f881d43 to your computer and use it in GitHub Desktop.
Save TimWolla/bbf181e04dbf4f881d43 to your computer and use it in GitHub Desktop.
function lets-encrypt
set -l __le_args (count $argv)
for index in (seq $__le_args)
set argv[$index] '-d '$argv[$index]
end
docker run -it --rm --name letsencrypt -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" -v "/var/log/letsencrypt:/var/log/letsencrypt" -v "/etc/nginx/lets-encrypt:/etc/nginx/lets-encrypt" quay.io/letsencrypt/letsencrypt:latest auth $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment