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 UI won't work if API base path is used (e.g. uvicorn --root-path) #112

Open
lc-spxl opened this issue Jun 5, 2023 · 1 comment · May be fixed by #113
Open

Swagger UI won't work if API base path is used (e.g. uvicorn --root-path) #112

lc-spxl opened this issue Jun 5, 2023 · 1 comment · May be fixed by #113

Comments

@lc-spxl
Copy link

lc-spxl commented Jun 5, 2023

Hi,
first of all, great work on this project!

I am trying to get it working behind a proxy that will forward request from /whisper

Following FastAPI docs I have been able to run the API properly.

My docker entrypoint now looks like this

uvicorn --host 0.0.0.0 --port 9000 --workers 1 app.webservice:app --root-path /whisper

One downside is that OpenAPI UI doesn't load properly as it always listen on /docs instead of /whisper/docs

I am not familiar with FastAPI library thus I have not been yet able to make it work, do you have a suggestion ?

I will be happy to provide a PR to support this feature, once sorted out.

Thank you
Kind regards

@lc-spxl lc-spxl linked a pull request Jun 5, 2023 that will close this issue
@lc-spxl
Copy link
Author

lc-spxl commented Jun 5, 2023

Ok got it sorted out somehow. Let me know if it make sense to you. Thanks!

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

Successfully merging a pull request may close this issue.

1 participant