Skip to content

Commit

Permalink
Enable http2 support (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
intentionally-left-nil authored Sep 10, 2023
1 parent 3bf3370 commit 0a8f762
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ jobs:
if [ "$output" != "200" ]; then
exit 42
fi
- name: Make sure that http2 is supported
working-directory: ./test
run: |
output=$(curl -s -o /dev/null -w "%{http_version}" --cacert fullchain.pem https://localhost)
ret="$?"
echo "$output"
if [ "$ret" -ne 0 ]; then
exit "$ret"
fi
if [ "$output" != "2" ]; then
exit 42
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
config.json
test/*.pem
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ bootstrap_fn() {
cat << EOF >> "$data_dir/nginx_generated.conf"
server {
server_name $server_name;
listen 443 ssl;
listen [::]:443 ssl;
listen 443 ssl http2;
listen [::]:443 ssl http2;
http2 on;
ssl_certificate $cert_dir/$domain/fullchain.pem;
ssl_certificate_key $cert_dir/$domain/key.pem;
Expand Down

0 comments on commit 0a8f762

Please sign in to comment.