Skip to content

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

@knollet

Description

@knollet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions