docs: use nginx http2 directive instead of deprecated http2 listen parameter (#1251)
Acked-by: Jason Cameron <git@jasoncameron.dev>
This commit is contained in:
parent
6c8629e3ac
commit
da1890380e
1 changed files with 6 additions and 4 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue