title: nginx reverse proxy params docker
body: <p>when doing a post to  let <code>url = '/api/registerCoin'</code> it works. 
  <code>nginx</code> forwards this to <code>server:3000</code>, which is good!
  When I try the <code>post</code> to <code>/api/updatePost</code> with params
  nginx doesn't seem to point to the server.</p>
  
  <p>I am getting: </p>
  
  <pre><code>/api/findPostData Failed to load resource: the server responded with a status of 404 (Not Found) in the browser. 
  </code></pre>
  
  <p>Is that due to the params being added to the url? 
  I am having the same issue making a post to: </p>
  
  <pre><code> POST https://v2.steemconnect.com/api/broadcast 500 ()
  </code></pre>
  
  <p>this seems not to route via server. </p>
  
  <p>even though: <code>https://v2.steemconnect.com/oauth2/authorize?client_id=cr</code>
  for oauth authentication does work from the same component.<br>
  This leads me to believe that I am doing something wrong with the <code>nginx conf</code>.</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>var dilta = this.quill.getContents();
  let url = '/api/updatePost';
  const params = new HttpParams().set('permlink', permlink);
  return this.http.post(url ,dilta,{ params })</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code> worker_processes 2 ;
  
   events {
      worker_connections 1024;
   }
   http {
     upstream my-server {
   server myserver:3000;
    }
  
  upstream client {
  server client:4200;
  }
  
  server {
      listen 80;
  
      location / {
          proxy_pass http://client;
          proxy_http_version 1.1;
          proxy_set_header Host $host;
          proxy_set_header X-Forwarded-For $remote_addr;
      }
      location  ^~ /api/* {
          proxy_pass http://my-server;
          proxy_http_version 1.1;
          proxy_set_header Host $host;
          proxy_set_header X-Forwarded-For $remote_addr;
  }        
  }
  
   }
  </code></pre>