Example of a very simple reverse proxy

Ah thank you Idez for pointing that out, now it's working. There were a couple of things wrong with my config.

  1. Path was missing (as you pointed out)
  2. Static and Dynamic configurations must be split and referenced

I must say, the error messages were not the best and the documentation is not simple to understand that this is how the files must be structured. In any case I got it working with the following setup:

C:\config\traefik\traefik.yaml:

entryPoints:
  hole-1:
    address: ":661"

providers:
  file:
    filename: C:\config\traefik\dynamic.yaml

C:\config\traefik\dynamic.yaml:

http:
  routers:
    hole-router-1:
      rule: "Path(`/`)"
      entryPoints:
        - hole-1
      service: hole-service

  services:
    hole-service:
      loadBalancer:
        servers:
          - url: http://10.23.24.10:3000

Started traefik with: traefik.exe --configFile=C:/config/traefik/traefik.yaml

2 Likes