Skip to content

superiorlu/local-http2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP/2 for localhost

Support http/2 with nginx server on local development.

How-to

  1. Clone this repository and cd into it
git clone https://github.com/superiorlu/local-http2.git
cd local-http2
  1. Run the script to create certificates:
sh cert.sh
  1. Trust certificates
  • macOS:
sudo security add-trusted-cert -d -r trustAsRoot -k /Library/Keychains/System.keychain certs/server.crt
  • Ubuntu:
sudo cp certs/server.crt /usr/local/share/ca-certificates/server.crt
sudo update-ca-certificates
  1. Build Image
docker build -t mynginx .
  1. Run nginx server
docker run --rm --name mynginx -p 80:80 -p 443:443 -v $(pwd)/html:/usr/share/nginx/html -d mynginx

Resouce

License

MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published