https://eu.api.ovh.com/createApp/
login and test here :
https://api.ovh.com/console/#/me/api/application~GET
put appKey & appSecret in the script
we can get a consumer Key via the api
call this once to get an url and a key /auth/credential
you can now put the generated consumerKey in the script and open the link
then run the script, you can now call '/me' with success
adapt traefik settings
environment:
- "OVH_ENDPOINT=ovh-eu"
- "OVH_APPLICATION_KEY=xXxXxXxXxXxXxXxXxXxXxXxX"
- "OVH_APPLICATION_SECRET=xXxXxXxXxXxXxXxXxXxXxXxX"
- "OVH_CONSUMER_KEY=xXxXxXxXxXxXxXxXxXxXxXxX"
command:
- --certificatesresolvers.wildcardle.acme.email=rafi.piccolo@gmail.com
- --certificatesresolvers.wildcardle.acme.storage=/traefik/acme2.json
- --certificatesresolvers.wildcardle.acme.dnsChallenge.provider=ovh
- --certificatesresolvers.wildcardle.acme.dnsChallenge.delayBeforeCheck=10
labels:
# genere le certificat wildcard
- "traefik.http.routers.globalerrorpage.tls.domains[0].main=${DOMAIN}"
- "traefik.http.routers.globalerrorpage.tls.domains[0].sans=*.${DOMAIN}"
utiliser ce nouveau certresolver partout
https://developer.hosting.ionos.fr/
key=prefix.secret
adapt traefik settings
environment:
- "IONOS_API_KEY=xxxxxxxxx.xxxxxxxx"
command:
- --certificatesresolvers.wildcardle.acme.email=rafi.piccolo@gmail.com
- --certificatesresolvers.wildcardle.acme.storage=/traefik/acme2.json
- --certificatesresolvers.wildcardle.acme.dnsChallenge.provider=ionos
- --certificatesresolvers.wildcardle.acme.dnsChallenge.delayBeforeCheck=10
labels:
# genere le certificat wildcard
- "traefik.http.routers.globalerrorpage.tls.domains[0].main=${DOMAIN}"
- "traefik.http.routers.globalerrorpage.tls.domains[0].sans=*.${DOMAIN}"