Traefik +让我们加密OVH域

时间:2018-01-31 21:16:00

标签: docker lets-encrypt traefik ovh

我在Scaleway上有一个VPS,我正在运行docker,我正在尝试让Let&#39s的加密与Traefik一起工作。 这是我的traefik.toml:

version: "3"

services:
  traefik:
    container_name: traefik
    image: traefik
    volumes:
      - $PWD/traefik.toml:/etc/traefik/traefik.toml
      - $PWD/acme.json:acme.json
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - "80:80"
      - "443:443"
    labels:
      - traefik.frontend.rule=Host:monitor.viatecnologia.it
      - traefik.port=8080
    environment:
      - OVH_ENDPOINT=ovh-eu
      - OVH_APPLICATION_KEY=fdfdsfa
      - OVH_APPLICATION_SECRET=fdsafsafda
      - OVH_CONSUMER_KEY=fdasfasdfa
    networks:
      - proxy


networks:
  proxy:
external: true

这是我的docker-compose:

traefik    | time="2018-01-31T21:08:25Z" level=info msg="Server configuration reloaded on :443"
traefik    | time="2018-01-31T21:08:25Z" level=info msg="Server configuration reloaded on :80"
traefik    | time="2018-01-31T21:08:25Z" level=info msg="Server configuration reloaded on :8080"
traefik    | Error when call OVH api to add record : "Error 403: \"This credential does not exist\""
traefik    | Error when call OVH api to add record : "Error 403: \"This credential does not exist\""
traefik    | time="2018-01-31T21:08:33Z" level=error msg="map[viatecnologia.it:Error presenting token: Error 403: "This credential does not exist" www.viatecnologia.it:Error presenting token: Error 403: "This credential does not exist"]"
traefik    | time="2018-01-31T21:08:33Z" level=error msg="Error getting ACME certificate for domain [viatecnologia.it www.viatecnologia.it]: cannot obtain certificates map[viatecnologia.it:Error presenting token: Error 403: "This credential does not exist" www.viatecnologia.it:Error presenting token: Error 403: "This credential does not exist"]"
traefik    | time="2018-01-31T21:08:33Z" level=info msg="Retrieved ACME certificates"
traefik    | time="2018-01-31T21:08:33Z" level=info msg="Testing certificate renew..."

当我运行 docker-compose up 时,我收到此错误

mylist

我在https://eu.api.ovh.com/createApp/创建了一个应用,但它告诉我凭据不存在。我在tutorial中创建令牌 我忘了什么吗?

任何帮助?

0 个答案:

没有答案