Add Aliyun SLB Deploy
This commit is contained in:
parent
4a0b972b39
commit
1de1dcad87
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
######## Public functions #####################
|
######## Public functions #####################
|
||||||
#domain keyfile certfile cafile fullchain
|
#domain keyfile certfile cafile fullchain
|
||||||
Ali_Region="cn-hangzhou"
|
#Ali_Region="cn-hangzhou"
|
||||||
#Ali_Api_Key=""
|
#Ali_Api_Key=""
|
||||||
#Ali_Api_Secret=""
|
#Ali_Api_Secret=""
|
||||||
Ali_Api="https://slb.aliyuncs.com/"
|
Ali_Api="https://slb.aliyuncs.com/"
|
||||||
@ -31,6 +31,7 @@ ali_slb_deploy() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
######## Private functions #####################
|
||||||
_ali_rest() {
|
_ali_rest() {
|
||||||
|
|
||||||
signature=$(printf "%s" "GET&%2F&$(_ali_urlencode "$query")" | _hmac "sha1" "$(printf "%s" "$Ali_Api_Secret&" | _hex_dump | tr -d " ")" | _base64)
|
signature=$(printf "%s" "GET&%2F&$(_ali_urlencode "$query")" | _hmac "sha1" "$(printf "%s" "$Ali_Api_Secret&" | _hex_dump | tr -d " ")" | _base64)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user