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:
- Fedora CoreOS stable
- 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
- 80 port allowed for users (
net.ipv4.ip_unprivileged_port_start = 80
) - You can check my traefik instance on http://shdwchn.io/ . But it's returning 404 for some reason
Here is logs: Mar 27 07:01:59 netmaker systemd[939]: Starting traefik.service - Traefik...Ma - Pastebin.com