title: Simple reverse proxy example with Traefik
body: <p>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?</p>
  
  <p>I can't find it absolutely anywhere! Been on their website for a few hours now.</p>
  
  <p>This is their best example from here <a href="https://docs.traefik.io/routing/routers/#configuration-example" rel="nofollow noreferrer">https://docs.traefik.io/routing/routers/#configuration-example</a>:</p>
  
  <pre><code>## Forwarding all (non-tls) requests on port 3306 to a database service
  ## Static configuration
  entryPoints:
    web:
      address: ":80"
    mysql:
      address: ":3306"   
  </code></pre>
  
  <p>I would like something like the following from NGINX:</p>
  
  <pre><code>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;
          }
      }
  }
  </code></pre>