docs: use nginx http2 directive instead of deprecated http2 listen parameter (#1251)

Acked-by: Jason Cameron <git@jasoncameron.dev>
This commit is contained in:
kouhaidev 2025-11-15 22:59:16 -08:00 committed by GitHub
parent 6c8629e3ac
commit da1890380e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,8 +55,9 @@ server {
# proxy all traffic to the target via Anubis. # proxy all traffic to the target via Anubis.
server { server {
# Listen on TCP port 443 with TLS (https) and HTTP/2 # Listen on TCP port 443 with TLS (https) and HTTP/2
listen 443 ssl http2; listen 443 ssl;
listen [::]:443 ssl http2; listen [::]:443 ssl;
http2 on;
location / { location / {
proxy_set_header Host $host; proxy_set_header Host $host;
@ -113,8 +114,9 @@ Then in a server block:
server { server {
# Listen on 443 with SSL # Listen on 443 with SSL
listen 443 ssl http2; listen 443 ssl;
listen [::]:443 ssl http2; listen [::]:443 ssl;
http2 on;
# Slipstream via Anubis # Slipstream via Anubis
include "conf-anubis.inc"; include "conf-anubis.inc";