Skip to content

necccc/quick-local-https

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

quick-local-https

Really small and quick https server for serving static html. Great for POC's prototyping or testing web APIs that require HTTPS

Usage

  • install docker
  • clone this repo
  • run docker-compose up -d
  • open your browser and go to https://0.0.0.0
  • you have to set the page as exception, since the cert is self-signed
  • you'll see the index.html in this repo over https

Configuration

See the docker-compose.yml to set port, paths, etc if necessary.

Recreate SSL cert

The cert is generated for 365 days, you can create a new one anytime using the following command:

cd nginx-https
rm nginx.crt nginx.key
openssl req -newkey rsa:2048 -nodes -keyout nginx.key -x509 -days 365 -out nginx.crt

About

Really small and quick https server for serving static html. Great for POC's prototyping or testing web APIs that require HTTPS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published