Przeglądaj źródła

update http2 config due to deprecation

the previous way to let `http2` follow a `listen` was depracated, it
moved to `http2 on;`
pull/3460/head
Jost Alemann 1 rok temu
rodzic
commit
b791c77d2c
1 zmienionych plików z 7 dodań i 5 usunięć
  1. +7
    -5
      examples/reverse-proxies/nginx/matrix.conf

+ 7
- 5
examples/reverse-proxies/nginx/matrix.conf Wyświetl plik

@@ -1,6 +1,7 @@
server { server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;


# TODO: add/remove services and their subdomains if you use/don't use them # TODO: add/remove services and their subdomains if you use/don't use them
# this example is using hosting something on the base domain and an element web client, so example.com and element.example.com are listed in addition to matrix.example.com # this example is using hosting something on the base domain and an element web client, so example.com and element.example.com are listed in addition to matrix.example.com
@@ -37,8 +38,9 @@ server {
# settings for matrix federation # settings for matrix federation
server { server {
# For the federation port # For the federation port
listen 8448 ssl http2 default_server;
listen [::]:8448 ssl http2 default_server;
listen 8448 ssl default_server;
listen [::]:8448 ssl default_server;
http2 on;


server_name matrix.example.com; server_name matrix.example.com;


@@ -93,4 +95,4 @@ server {
server_name element.example.com; server_name element.example.com;
listen 80; listen 80;
return 404; # managed by Certbot return 404; # managed by Certbot
}
}

Ładowanie…
Anuluj
Zapisz