Sign inSign up

lorcopotia/my-http2-app

By lorcopotia

•Updated almost 2 years ago

Simple web application to showcase HTTP/2 performance

Image
0

10K+

lorcopotia/my-http2-app repository overview

⁠How to use

  1. Execute the following commands to generate the required certificates:

    mkdir certs
    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./certs/nginx.key -out ./certs/nginx.crt
    
  2. Create your docker compose file to load the image:

    services:
      nginx:
        image: lorcopotia/my-http2-app:latest
        ports:
          - "443:443"
        volumes:
           - ./certs:/etc/nginx/certs:ro
     restart: always
    
  3. Run the next command to start the container:

    docker compose up -d
    
  4. Open https://localhost in your favorite web browser and inspect using Developer tools. You'll be looking for 'h2' in your protocol column.

Tag summary

Content type

Image

Digest

sha256:890e72237…

Size

19.7 MB

Last updated

almost 2 years ago

docker pull lorcopotia/my-http2-app