Updated to new http2 syntax

This commit is contained in:
Brandon Rozek 2024-06-16 19:44:45 -07:00
parent 0e72302e88
commit 88057d3f06
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
3 changed files with 12 additions and 8 deletions

View file

@ -162,8 +162,9 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name GIT.SERVER.URL;
ssl_certificate /path/to/chain;

View file

@ -38,8 +38,9 @@ Under standard HTTPS, a SSL handshake occurs. Though this seems pointless if all
```nginx
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
ssl_reject_handshake on;
server_name _;
@ -59,8 +60,9 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
ssl_reject_handshake on;
server_name _;

View file

@ -166,8 +166,9 @@ server {
# ....
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
# ...
}
```