https://github.com/ksm2/h2-haproxy-nginx
Docker test setup for HTTP/2 Server Push with HAProxy and Nginx
https://github.com/ksm2/h2-haproxy-nginx
docker-compose haproxy http2 nginx performance server-push
Last synced: about 1 year ago
JSON representation
Docker test setup for HTTP/2 Server Push with HAProxy and Nginx
- Host: GitHub
- URL: https://github.com/ksm2/h2-haproxy-nginx
- Owner: ksm2
- Created: 2018-10-02T00:17:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T00:19:29.000Z (over 7 years ago)
- Last Synced: 2025-02-01T18:13:53.947Z (about 1 year ago)
- Topics: docker-compose, haproxy, http2, nginx, performance, server-push
- Language: HTML
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTTP/2 with HAProxy and Nginx
=============================
Install nghttp2 (an HTTP/2 client)
sudo pacman -Sy nghttp2
Start the containers
docker-compose up
Request `index.html`
nghttp -vvv https://moellers.local
And you see it works!
[ 0.038] recv (stream_id=13) :method: GET
[ 0.038] recv (stream_id=13) :path: /style.css
[ 0.038] recv (stream_id=13) :scheme: https
[ 0.038] recv (stream_id=13) :authority: moellers.local
[ 0.038] recv (stream_id=13) accept-encoding: gzip, deflate
[ 0.038] recv (stream_id=13) user-agent: nghttp2/1.33.0
[ 0.038] recv PUSH_PROMISE frame
; END_HEADERS
(padlen=0, promised_stream_id=2)
[ 0.038] recv (stream_id=13) :status: 200
[ 0.038] recv (stream_id=13) server: nginx/1.15.4
[ 0.038] recv (stream_id=13) date: Tue, 02 Oct 2018 00:06:45 GMT
[ 0.038] recv (stream_id=13) content-type: text/html
[ 0.038] recv (stream_id=13) last-modified: Mon, 01 Oct 2018 23:31:56 GMT
[ 0.038] recv (stream_id=13) etag: W/"5bb2ae6c-1aa"
[ 0.038] recv (stream_id=13) x-scheme: http
[ 0.038] recv (stream_id=13) content-encoding: gzip
[ 0.038] recv HEADERS frame
; END_HEADERS
(padlen=0)
; First response header
**Note:** Because of a [bug in Nginx](https://trac.nginx.org/nginx/ticket/1549#ticket) the Server Push did not correctly work in the browser for Nginx < 15.1.