title: Traefik v2 as a reverse proxy without docker
body: <p>I have read the documentation but I can not figure out how to configure Traefik v2 to replace Nginx as a reverse proxy for web sites (virtual hosts) without involving Docker. Ideally there would be let'sencrypt https as well.</p>
  
  <p>I have a service running at <a href="http://127.0.0.1:4000" rel="noreferrer">http://127.0.0.1:4000</a> which I would like to reverse proxy to from <a href="http://myhost.com:80" rel="noreferrer">http://myhost.com:80</a></p>
  
  <p>This is the configuration i've come up with so far: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>[Global]
  checkNewVersion = true
  
  [log]
    level = "DEBUG"
    filePath = "log-file.log"
  
  [accessLog]
    filePath =  "log-access.log"
    bufferingSize =  100
  
  [entrypoints]
      [entrypoints.http]
      address = ":80"
  
  [http]
      [http.routers]
         [http.routers.my-router]
            rule = "Host(`www.myhost.com`)"
            service = "http"
            entrypoint=["http"]
  
      [http.services]
            [http.services.http.loadbalancer]
              [[http.services.http.loadbalancer.servers]]
                url = "http://127.0.0.1:4000"</code></pre>
  </div>
  </div>
  </p>