-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to show docs with nginx url prefix set? #606
Labels
Comments
We most often deploy with nginx + uwsgi and setup uswgi to prepend API URLs with Out of curiosity, I'd try to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have project which uses flask-smorest and when I run it locally it shows docs on url
/docs/swagger
. But on my production server I have in nginx setup to appendapi/
prefix on each url and then docs are not showing because flask-smorest expects openapi.json ondocs/openapi.json
but mine nginx appendapi/
and openapi.json is visible on urlapi/docs/openapi.json
so I keep getting error:So basically how to setup configuration so it loads docs? Here are mine configuration in project for flask-smorest:
The text was updated successfully, but these errors were encountered: