Swashbuckle behind NGINX Reverse Proxy
December 20, 2018
<p>If you want to jump straight to the repo, go to <a href="https://github.com/lukerogers/swashbuckle-nginx">https://github.com/lukerogers/swashbuckle-nginx</a>. After cloning the repo you can just run <code>docker-compose up</code> then open <a href="http://localhost:5100/api">http://localhost:5100/api</a> and you should see the swagger UI.</p>
<p>If you’re still reading this, thanks for sticking around. Back to the task at hand!</p>
<p><strong>Assumptions:</strong> If you got here looking for running <a href="https://github.com/domaindrivendev/Swashbuckle.AspNetCore">Swashbuckle</a> behind <a href="https://www.nginx.com/">NGINX</a>, I’m going to assume you are familiar with my setup. <a href="https://docs.microsoft.com/en-us/aspnet/core/?view=aspnetcore-2.2">ASP.NET Core</a> WebAPI service running with Swashbuckle to document the API and test it. For the sake of this article let’s assume I want to expose this to the end user.</p>