Skip to content

nginx-ssl is a nginx docker image which comes with a self-signed certificate for localhost and a basic nginx ssl set up

Notifications You must be signed in to change notification settings

rodrigodiez/nginx-ssl-localhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is nginx-ssl-localhost?

Is a ready to use nginx ssl image which comes pre-configured with a self-signed certificate for localhost

How to use

Run the container by executing docker run --name nginx-ssl-localhost --rm -p "443:443" rodrigodiez/nginx-ssl-localhost

Now, open https://localhost in your browser. You should see a welcome page

Serving your site

Just mount your site's directory as a volume in /usr/share/nginx/html: docker run --name nginx-ssl-localhost --rm -p "443:443" -v /some/html:/usr/share/nginx/html rodrigodiez/nginx-ssl-localhost

About

nginx-ssl is a nginx docker image which comes with a self-signed certificate for localhost and a basic nginx ssl set up

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages