Browse Source

Use regexes to match ALPN protocols (#5651)

nginx presents the client's list of ALPN protocols as
$ssl_preread_alpn_protocols, a comma-separated string.  Use regular
expressions to match each item in the list, rather than the exact value
of the entire list at once.
master
Dara Poon 5 years ago
parent
commit
0e16008085
No account linked to committer's email address
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      doc/debian/jitsi-meet/jitsi-meet.conf

+ 2
- 3
doc/debian/jitsi-meet/jitsi-meet.conf View File

11
     }
11
     }
12
     # since 1.13.10
12
     # since 1.13.10
13
     map $ssl_preread_alpn_protocols $upstream {
13
     map $ssl_preread_alpn_protocols $upstream {
14
-        "h2"            web;
15
-        "http/1.1"      web;
16
-        "h2,http/1.1"   web;
14
+        ~\bh2\b         web;
15
+        ~\bhttp/1\.     web;
17
         default         turn;
16
         default         turn;
18
     }
17
     }
19
 
18
 

Loading…
Cancel
Save