mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-03 03:01:31 +08:00
Add complete HTTP/2 example in examples/http2_features/: - ASGI app showing priority access and trailer sending - Test script using raw h2 library for HTTP/2 testing - Docker setup for easy testing - Documentation update referencing the example The example demonstrates: - Reading http.response.priority extension in ASGI scope - Sending http.response.trailers messages - Multiple streams on the same connection
21 lines
429 B
Python
21 lines
429 B
Python
# Gunicorn configuration for HTTP/2 features example
|
|
|
|
bind = "0.0.0.0:8443"
|
|
workers = 2
|
|
worker_class = "asgi"
|
|
|
|
# SSL configuration (required for HTTP/2)
|
|
certfile = "/app/certs/server.crt"
|
|
keyfile = "/app/certs/server.key"
|
|
|
|
# HTTP/2 configuration
|
|
http_protocols = "h2,h1"
|
|
http2_max_concurrent_streams = 100
|
|
http2_initial_window_size = 65535
|
|
http2_max_frame_size = 16384
|
|
|
|
# Logging
|
|
accesslog = "-"
|
|
errorlog = "-"
|
|
loglevel = "info"
|