Skip to content

Instantly share code, notes, and snippets.

@yamamoto-febc
Last active October 18, 2018 02:05
Show Gist options
  • Save yamamoto-febc/bc12cb10e84aac68ee8c591787ec6c7b to your computer and use it in GitHub Desktop.
Save yamamoto-febc/bc12cb10e84aac68ee8c591787ec6c7b to your computer and use it in GitHub Desktop.
さくらのクラウド + legoでLet's encrypt(DNS-01) ref: https://qiita.com/yamamoto-febc/items/290d5c455fe5b4f285bf
# さくらのクラウドAPIキーを環境変数に指定
export SAKURACLOUD_ACCESS_TOKEN=<APIアクセストークン>
export SAKURACLOUD_ACCESS_TOKEN_SECRET=<APIアクセスシークレット>
# --dns=sakuracloudと指定してlego runを実行
lego --email="example@example.com" --domains="example.com" --dns="sakuracloud" run
# さくらのクラウドAPIキーを環境変数に指定
export SAKURACLOUD_ACCESS_TOKEN=<APIアクセストークン>
export SAKURACLOUD_ACCESS_TOKEN_SECRET=<APIアクセスシークレット>
docker run -it --rm \
-e SAKURACLOUD_ACCESS_TOKEN \
-e SAKURACLOUD_ACCESS_TOKEN_SECRET \
-v $PWD:/lego \
sacloud/lego \
--path=/lego \
--email="example@example.com" \
--domains="example.com" \
--dns="sakuracloud" \
run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment