Skip to content

zombiecong/http-server-ssl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-server-ssl: a command-line https server

folk from http-server-ssl , you can use http-server-ssl -S or hss -S run a https server.

This command using pem creatas an invalid certificate to run a https server for debug.

Usage

npm install http-server-ssl

in package.json -go to scripts and add, "hss": "http-server-ssl -S", then run npm run hss


OR install globally npm install -g http-server-ssl, and then you can just run http-server-ssl -S in the terminal in any project.

Then, in your Chromium based browser, go to url chrome://flags/#allow-insecure-localhost and enable, restart. Then you can go to the https://127.0.0.1:8080/ URL with no problem

About

a simple zero-configuration command-line http server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • HTML 2.5%