Possible to use without containers, simple web proxy?

Hello @Justin and @prichards14,

yes, you need a static and a dynamic configuration file.

Add the dynamic file provider to your config (see https://doc.traefik.io/traefik/providers/file/ ):

traefik.yaml (snippet):

# [...]
providers:
  file:
    filename: /path/to/config/dynamic.yaml
# [...]

Add HTTP Router and HTTP Service to your dynamic configuration:

dynamic.yaml (snippet):

# [...]
http:
  routers:
    my-router:
      rule: "Host(`something.example.invalid`)"       
      service: my-service

  services:
    my-service:
      loadBalancer:
        servers:      
        - url: "http://192.168.1.123:81/"
# [...]

You also want to add some extra stuff, like TLS encryption and security headers middleware.

Hope this helps,
Wolfgang

2 Likes