Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker Traefik+;让';s加密OVH域_Docker_Lets Encrypt_Traefik_Ovh - Fatal编程技术网

Docker Traefik+;让';s加密OVH域

Docker Traefik+;让';s加密OVH域,docker,lets-encrypt,traefik,ovh,Docker,Lets Encrypt,Traefik,Ovh,我在运行docker的Scaleway上有一个VPS,我正在尝试让我们使用Traefik进行加密。 这是我的traefik.toml: defaultEntryPoints = ["http", "https"] debug = true logLevel = "DEBUG" [web] address = ":8080" [web.auth.basic] users = ["admin:$apr1$CXbUFy59$gnQY50uMvzc3Q5tnhA2ZZ."] [e

我在运行docker的Scaleway上有一个VPS,我正在尝试让我们使用Traefik进行加密。 这是我的traefik.toml:

defaultEntryPoints = ["http", "https"]
debug = true
logLevel = "DEBUG"

[web]
  address = ":8080"
    [web.auth.basic]
    users = ["admin:$apr1$CXbUFy59$gnQY50uMvzc3Q5tnhA2ZZ."]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
      entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]

[retry]

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "viatecnologia.it"
watch = true
exposedbydefault = false

[acme]
email = "admin@viatecnologia.it"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
  [acme.dnsChallenge]
  provider = "ovh"
  delayBeforeCheck = 0
onDemand = false

[[acme.domains]]
  main = "viatecnologia.it"
  sans = ["www.viatecnologia.it"]
  sub = "monitor.viatecnologia.it"
这是我的docker compose:

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 up时,我得到了这个错误

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..."
我在上创建了一个应用程序,但它告诉我凭据不存在。我在他们的 我忘了什么吗


有什么帮助吗?

我将traefik.toml[acme.dnsChallenge]更改为手动。在某个时候,它开始工作,但后来又停止了。现在我从traefik:traefik | time=“2018-02-01T13:44:31Z”level=info msg=“Retrieved ACME certificates”traefik | time=“2018-02-01T13:44:31Z”level=info msg=“测试证书续订…”