1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| xcaddy build master --output caddy --with github.com/caddy-dns/alidns --with github.com/greenpau/caddy-security
(tls) { tls { dns alidns { access_key_id {env.ALIYUN_ACCESS_KEY_ID} access_key_secret {env.ALIYUN_ACCESS_KEY_SECRET} } on_demand } }
# https://www.aliyun.com/ # 重启生效 # [environment]::SetEnvironmentvariable("ALIYUN_ACCESS_KEY_ID", "LTAI5tDc21111111111111111", "User") # [environment]::SetEnvironmentvariable("ALIYUN_ACCESS_KEY_SECRET", "S3Daw8Bxn2222222222222222", "User") # echo $env:ALIYUN_ACCESS_KEY_SECRET
|