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

🚀 [Feature]: contrib/swagger.go exposes internal adresses. There should be a possibility to self-host #1124

Open
3 tasks done
knollet opened this issue Jun 5, 2024 · 0 comments
Labels
✏️ Feature New feature or request

Comments

@knollet
Copy link

knollet commented Jun 5, 2024

Feature Description

Self host swagger to be able to use this even without internet access and to not expose internal addresses.

contrib/swagger
defines a struct Config, which could include an optional field for an address where swagger is hosted.

Currently external default addresses (unpkg.com) are hardcoded here:
https://github.com/go-openapi/runtime/blob/master/middleware/swaggerui.go
There's an optional SwaggerUIOpts.Template parameter which is not settable through contrib/swagger.

It would be a plus to have an example as to how clone swagger into my project and how to configure fiber to use that.

Additional Context (optional)

No response

Code Snippet (optional)

No response

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.
@knollet knollet added the ✏️ Feature New feature or request label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant