Hi, can anyone help ?
I am trying to use traffic but its infront of a nginx proxy. So I decided to make traefik listen on endpoints 81 and 444.
Then I wanted nginx to forward proxy requests to traefik to server..
But traefik isn’t doing anything, maybe I have made a mistake Very probably.
here is my traefik
--api.insecure=true,
--api.dashboard=true,
--providers.docker=true,
--providers.docker.swarmMode=true,
--providers.docker.exposedByDefault=false,
--entryPoints.http.address=:81,
--entryPoints.https.address=:444,
and ports are exposed
ports:
- target: 81
published: 81
mode: host
- target: 444
published: 444
mode: host
- target: 8080
published: 8080
mode: host
Nothing seems to be working, although I have the treafik dashboard set on 8080: and that port published so i can see traefik running..
I have a simple container that i know works as I am using it elsewhere and i have a host configured
Canyone help, i know it must be something to do with nginx
This is the nginx , i presume i am listening on 80 and forwarding to 81
should work right ?
server {
listen 80 default_server;
server_name _;
location / {
proxy_pass http://127.0.0.1:81;
}
}
So nginx is the one listening on 80,443 and if anything is unserved by it then i want it to forward to traefik. Is somebody doing something similar ?