Last active
October 18, 2018 02:05
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# さくらのクラウドAPIキーを環境変数に指定 | |
export SAKURACLOUD_ACCESS_TOKEN=<APIアクセストークン> | |
export SAKURACLOUD_ACCESS_TOKEN_SECRET=<APIアクセスシークレット> | |
# --dns=sakuracloudと指定してlego runを実行 | |
lego --email="[email protected]" --domains="example.com" --dns="sakuracloud" run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# さくらのクラウド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="[email protected]" \ | |
--domains="example.com" \ | |
--dns="sakuracloud" \ | |
run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment