title: Swashbuckle and NGINX redirection
body: <p>I'm trying to setup swashbuckle with my web API.  It's working pretty good locally with these settings :</p>
  
  <pre><code>app.UseSwagger(c =&gt; 
  {
      c.RouteTemplate = "swagger/{documentName}/swagger.json";
  });
  app.UseSwaggerUI(c =&gt;
  {
      c.SwaggerEndpoint("v1/swagger.json", "Swagger - API V1");
  });
  </code></pre>
  
  <p>With these settings, I can successfuly access swagger via this url : <a href="http://localhost:5000/swagger" rel="nofollow noreferrer">http://localhost:5000/swagger</a></p>
  
  <p>My problem is that when it is deployed on our test server, the request are redirected through Nginx this way :</p>
  
  <ul>
  <li><a href="http://somepublicserver:84/myapi/swagger" rel="nofollow noreferrer">http://somepublicserver:84/myapi/swagger</a> => <a href="http://internalserver1:5000/swagger" rel="nofollow noreferrer">http://internalserver1:5000/swagger</a></li>
  </ul>
  
  <p>Unfortunately, this does not work because "<a href="http://somepublicserver:84/myapi/swagger" rel="nofollow noreferrer">http://somepublicserver:84/myapi/swagger</a>" is always changed for "<a href="http://somepublicserver:84/swagger" rel="nofollow noreferrer">http://somepublicserver:84/swagger</a>" when browsing which doesn't exist.  </p>
  
  <p>Is there any swashbuckle's settings I need to change to fix this behavior?</p>