Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Access Swagger UI When It's Behind Proxy #30

Closed
MRdevX opened this issue Sep 28, 2020 · 3 comments
Closed

Can't Access Swagger UI When It's Behind Proxy #30

MRdevX opened this issue Sep 28, 2020 · 3 comments

Comments

@MRdevX
Copy link
Contributor

MRdevX commented Sep 28, 2020

Hi,
I'm starting a project on top of this boilerplate, although it's pretty great and helpful. But I have a little problem with swagger UI.
it works fine on my local machine, but when it comes to deployment, swagger UI is not loading, and I get these errors:

image

@hagopj13
Copy link
Owner

What proxy are you using? Where is the browser trying to load these files from? This might be helpful.

@MRdevX
Copy link
Contributor Author

MRdevX commented Sep 28, 2020

What proxy are you using? Where is the browser trying to load these files from? This might be helpful.

We are using Nginx, and I'm using my local browser on my laptop to access swagger docs on the server. the problem is these static files are generated dynamically.
are there any related settings should I put on Nginx config?

@hagopj13
Copy link
Owner

Your problem seems similar to what is described in the link I sent above: https://stackoverflow.com/questions/59974843/nginx-response-with-404-on-static-resourse-of-swaggerui-express
Did you check it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants