Does anyone have a dead simple configuration example of an incoming http request on port 80 to be redirect to a specific static ip on port 8080 for traefik?
I can't find it absolutely anywhere! Been on their website for a few hours now.
This is their best example from here https://docs.traefik.io/routing/routers/#configuration-example:
## Forwarding all (non-tls) requests on port 3306 to a database service
## Static configuration
entryPoints:
web:
address: ":80"
mysql:
address: ":3306"
I would like something like the following from NGINX:
events { }
http {
upstream mop {
server mop:3000;
}
server {
listen 80;
server_name localhost;
location /mop {
proxy_pass http://mop;
}
location /mop/1 {
proxy_pass http://mop;
}
location /mop/2 {
proxy_pass http://mop;
}
}
}