Skip to content

Latest commit

 

History

History
77 lines (55 loc) · 1.96 KB

File metadata and controls

77 lines (55 loc) · 1.96 KB

HTTP-Version-Test

HTTP 버전 별 차이점을 비교해보는 레포지토리

사용법

  1. git clone https://github.com/HTTP-LAB/HTTP-Version-Test.git
  2. cd docker
  3. SSL 인증서 설치
  4. Docker-Compose 파일에 명시된 경로로 인증서 파일 이동
  5. Docker 설치
  6. Docker-Compose 설치
  7. sudo docker-compose -f docker-compose.yml up --buld -d 실행

URL

HTTP/1.1

HTTP/2/0

HTTP/3.0

사용한 도구

  • Docker
  • Docker-Compose
  • Nginx

도커 이미지

nginx.conf

server {
        server_name www.httplab.shop;

        # http/3
        listen 443 quic reuseport;

        # http/2 또는 http/1.1
        listen 443 ssl;
        http2 on;

        ssl_certificate /etc/nginx/certs/fullchain.pem;
        ssl_certificate_key /etc/nginx/certs/privkey.pem;

        ssl_protocols TLSv1.2 TLSv1.3;

        # 0-RTT QUIC
        ssl_early_data on;

        # HTTP/3.0 정보 (30443 포트로 h3 사용가능)
        add_header alt-svc 'h3=":30443"; ma=86400';

        # QUIC이 사용될 때 추가되는 헤더
        add_header QUIC-Status $http3;

        root /var/www/html;
        index index.html;

        location / {
            try_files $uri $uri/ =404;
        }
    }

아키텍처

image