Browse Source

Support environment variables when using DNS challenges with OVH

pull/679/head
Robin KERDILES 4 years ago
parent
commit
ce61e500ab
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      dns_scripts/dns_add_ovh
  2. +3
    -3
      dns_scripts/dns_del_ovh

+ 3
- 3
dns_scripts/dns_add_ovh View File

@ -5,9 +5,9 @@ challenge="$2"
# Please, do not forget to ask for your credentials at https://eu.api.ovh.com/createToken/
# permissions needed are /domain/zone/* in GET,POST,DELETE
applicationKey="YourAK"
applicationSecret="YourAS"
consumerKey="YourCK"
applicationKey=${OVH_APPLICATION_KEY:-''}
applicationSecret=${OVH_APPLICATION_SECRET:-''}
consumerKey=${OVH_CONSUMER_KEY:-''}
topDomain=${domains[2]}
subDomain=${domains[1]%%.}


+ 3
- 3
dns_scripts/dns_del_ovh View File

@ -5,9 +5,9 @@ domains=($(echo "$1"|sed -e 's/^\(\([a-zA-Z0-9.-]*\?\)\.\)*\([a-zA-Z0-9-]\+\.[a-
# Please, do not forget to ask for your credentials at https://eu.api.ovh.com/createToken/
# permissions needed are /domain/zone/* in GET,POST,DELETE
applicationKey="YourAK"
applicationSecret="YourAS"
consumerKey="YourCK"
applicationKey=${OVH_APPLICATION_KEY:-''}
applicationSecret=${OVH_APPLICATION_SECRET:-''}
consumerKey=${OVH_CONSUMER_KEY:-''}
topDomain=${domains[2]}
subDomain=${domains[1]%%.}


Loading…
Cancel
Save