茶ef的traefik无法工作,错误403

时间:2018-08-22 09:57:20

标签: asp.net-core traefik kestrel-http-server

我在使用Kestrel运行小型.net核心Web应用程序并尝试使用traefik进行反向代理时遇到问题。

我的应用程序在https://127.0.0.1:44321上运行,并在路由器中打开了端口80和443,我在Win7机器上运行traefik.exe。

这是我的toml文件:

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

[web]
address = ":8085"

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

[backends]

  [backends.backend1]

    [backends.backend1.servers]
      [backends.backend1.servers.server0]
        url = "https://127.0.0.1:44321"
        weight = 1

[frontends]

  [frontends.frontend1]
    entryPoints = ["http"]
    backend = "backend1"
    passHostHeader = true
    [frontends.frontend1.routes]
      [frontends.frontend1.routes.route0]
        rule = "mysite.ddns.net"

[acme]
email = "mymail@gmail.com"
storage = "acme.json"
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
entryPoint = "https"
  [acme.httpChallenge]
  entryPoint = "http"

[[acme.domains]]
  main = "mysite.ddns.net"

没有错误

INFO[2018-08-22T11:49:13+02:00] Server configuration reloaded on :80
INFO[2018-08-22T11:49:13+02:00] Server configuration reloaded on :443
INFO[2018-08-22T11:49:13+02:00] Server configuration reloaded on :8085

0 个答案:

没有答案