Support IPv6 in echoserver

This commit is contained in:
John Gardiner Myers 2022-01-05 21:48:25 -08:00
parent 65378e7747
commit 55201f9c4a
3 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
This is a simple server that responds with the http headers it received.
Image versions >= 2.5 support IPv6.
Image Versions >= 1.10 support HTTP2 on :8443.
Image Versions >= 1.9 expose HTTPS endpoint on :8443.
Image versions >= 1.4 removes the redirect introduced in 1.3.

View File

@ -1 +1 @@
2.4
2.5

View File

@ -72,7 +72,9 @@ Request Body:
# basically instructs to create an individual listening socket for each worker process (using the SO_REUSEPORT
# socket option), allowing a kernel to distribute incoming connections between worker processes.
listen 8080 default_server reuseport;
listen [::]:8080 default_server reuseport;
listen 8443 default_server ssl http2 reuseport;
listen [::]:8443 default_server ssl http2 reuseport;
ssl_certificate /certs/certificate.crt;
ssl_certificate_key /certs/privateKey.key;