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

swagger-express does not work behind reverse proxy #32

Open
RomanKisilenko opened this issue Apr 16, 2016 · 0 comments
Open

swagger-express does not work behind reverse proxy #32

RomanKisilenko opened this issue Apr 16, 2016 · 0 comments

Comments

@RomanKisilenko
Copy link

RomanKisilenko commented Apr 16, 2016

It is a normal practice to deploy REST services behind reverse proxies in production. But swagger-express will fail to work currently. The problem is that swagger json is bound to basePath prefix.

We came up with these fixes which did the job for us:
https://gist.github.com/RomanKisilenko/74ab3ff697696ba7eb07062834e4b022

Hopefully you can integrate these changes and release next version.

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

1 participant