Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions test/integration-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -986,10 +986,8 @@
oldTlsProtocol: 0

# http/3
# - url: "https://127.0.0.1:9001" # TODO - https://github.com/macbre/phantomas/pull/970
- url: "https://gf.dev/http3-test"
label: "h3"
flaky: Reaches the timeout of 5000 ms
- url: "https://127.0.0.1:9001"
label: "localhost h3 version"
metrics:
mainDomainHttpProtocol: "h3"
mainDomainTlsProtocol: "QUIC"
Expand Down
8 changes: 6 additions & 2 deletions test/nginx-static.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,21 @@ server {
listen 445 ssl;
http2 on;

server_name localhost;
server_name localhost;

ssl_certificate /etc/nginx/localhost.crt;
ssl_certificate_key /etc/nginx/localhost.key;

# Enable all TLS versions (TLSv1.3 is required for QUIC).
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;

# 0-RTT QUIC connection resumption
ssl_early_data on;

# Add Alt-Svc header to negotiate HTTP/3.
# port 9001 is what's presented to the client (see docker compose YAML file)
add_header alt-svc 'h3-27=":9001"; ma=86400, h3-28=":9001"; ma=86400, h3-29=":9001"; ma=86400';
add_header alt-svc 'h3=":9001"; ma=2592000,h3-29=":9001"; ma=2592000,h3-T051=":9001"; ma=2592000,h3-Q050=":9001"; ma=2592000,h3-Q046=":9001"; ma=2592000,h3-Q043=":9001"; ma=2592000,quic=":9001"; ma=2592000; v="46,43"';
add_header x-Http3 $http3; # Sent when http3 was used

root /static;

Expand Down
8 changes: 8 additions & 0 deletions test/ssl-certificate/mkcert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
DIR=$(realpath `dirname $0`)
echo "Generating SSL certificates for localhost in ${DIR} ... ";

set -x

mkcert -install
mkcert -cert-file ${DIR}/localhost.crt -key-file ${DIR}/localhost.key phantomas.local localhost 127.0.0.1