Skip to content
No description, website, or topics provided.
Shell HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
certs/conf
conf.d
html
.gitignore
Dockerfile
LICENSE.md
README.md
cert.sh

README.md

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.

You can’t perform that action at this time.