Skip to content

Feature request: ability to set oauth2RedirectUrl using env vars in Docker #3138

Closed
@shankie-codes

Description

Currently, docker-run.sh sed's out some placeholders in index.html for env vars that are set when running swagger-ui as a Docker container. This is great; however, there's a need to be able to set oauth2RedirectUrl in an environment variable as well – as right now this is 'baked in' to http://localhost:3200/oauth2-redirect.html .

In #2844 @bodnia suggests changing the constructor of SwaggerUIBundle, which I could obviously do; however, I'd rather use the stock image as it is.

Have you had any thoughts about exposing the config in swagger-config.yaml to environment variables?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions