Skip to content

Dockerfile to run a swagger ui instance that is protected by http basic auth

License

Notifications You must be signed in to change notification settings

ravindu1024/swagger-ui-basic-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

swagger-ui-basic-auth

Dockerfile to run a swagger ui instance that is protected by http basic auth

The only changes done to the official Swagger UI dockerfile are:

  • install apache utils
  • create a username and password using "htpasswd" which can be specified at build time
  • add the basic auth configuration to the nginx.conf file (2 lines in the location block)

Buid

docker build --build-arg USERNAME='username' --build-arg PASSWORD='super secure password' -t swagger-ui

Run

docker run -p 8080:8080 -it swagger-ui

About

Dockerfile to run a swagger ui instance that is protected by http basic auth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published