-
Notifications
You must be signed in to change notification settings - Fork 800
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
Option to disable swagger UI #1167
Comments
My understanding is that, this involves adding a config to turn off swagger when the deployment mode is production. |
@liusy182 I think first you can make this an option in the API Server class: https://github.com/bentoml/BentoML/blob/v0.9.2/bentoml/server/api_server.py#L96 And then add it as a CLI option for |
thanks! I will be taking a look of this item. |
I might be missing something very obvious, but is it possible to disable Swagger via an env var? The only option I see in the PR is |
Is your feature request related to a problem? Please describe.
We would like to have an option to disable Swagger UI in production for select model services.
Describe the solution you'd like
A configuration option to disable Swagger UI.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: