I am running a flask API with connexion.App vi Swagger / OPENAPI. I can access the Swagger UI directly, but when accessing behind a nginx proxy, it attempts to find the javascript files in a location that does not exist.
It is looking for:
- swagger-ui.css
- swagger-ui-standalone-preset.js
- swagger-ui-bundle.js
in the path set by NGINX, ie /my-api/doc. The files exist in the python package:
- python3.7/site-packages/flask_swagger_ui/dist/
Also I get:
SwaggerUIBundle is not defined
Any suggestions on how to pass these files, locations through the NGINX proxy?
I have tried passing js through the proxy, but it seems like it is not finding the files.