Can't make Traefik work and lost in troubleshooting progress

Hello!
I tried to set up a reverse proxy with traefik and couldn't get it to work, so I started reducing and simplifying the config. Now I have a very simple config and I still don't understand why it doesn't work (Im getting 404 error):

log:
  level: DEBUG
entryPoints:
  web:
    address: ":80"
http:
  routers:
    http-router:
      entryPoints:
        - web
      rule: Host(`shdwchn.io`)
      service: http-service
  services:
    http-service:
      loadBalancer:
        servers:
          - url: "http://httpbin.org/get" # for testing. Here was "http://127.0.0.1:8000" earlier with the same result (both urls are accessible from traefik container — I checked it with wget)

My setup is:

  1. Fedora CoreOS stable
  2. Traefik from docker hub in unprivileged (user) podman container. Running with systemd generator:
[Unit]
Description=Traefik

[Container]
Image=docker.io/traefik:v2.9
Network=host # for testing
PublishPort=80:80
PublishPort=443:443
Volume=traefik:/etc/traefik

[Service]
NotifyAccess=all
Restart=always

[Install]
WantedBy=default.target
  1. 80 port allowed for users (net.ipv4.ip_unprivileged_port_start = 80)
  2. You can check my traefik instance on http://shdwchn.io/ . But it's returning 404 for some reason :confused:

Here is logs: Mar 27 07:01:59 netmaker systemd[939]: Starting traefik.service - Traefik...Ma - Pastebin.com

Routers and services are dynamic config, that won’t be processed in the static config file.

Place them in a different file (eg traefik-dynamic.yml) and load the file in static config via provider.file (docs).

1 Like

Somehow I missed the information about static vs dynamic config. Thank you!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.