Skip to content

Commit 7d548ad

Browse files
Tealktgxworld
andauthored
Fix Warnung: the "listen ... http2" directive is deprecated (#873)
* Fix Warnung: the "listen ... http2" directive is deprecated Signed-off-by: Tealk <[email protected]> * Update templates/web.ssl.template.yml Co-authored-by: Alan Guo Xiang Tan <[email protected]> * add on to http2 --------- Signed-off-by: Tealk <[email protected]> Co-authored-by: Alan Guo Xiang Tan <[email protected]>
1 parent a1d8d0b commit 7d548ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

templates/web.ssl.template.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ run:
1515
filename: "/etc/nginx/conf.d/discourse.conf"
1616
from: /listen 80;\s+gzip on;/m
1717
to: |
18-
listen 443 ssl http2;
18+
listen 443 ssl;
19+
http2 on;
1920
SSL_TEMPLATE_SSL_BLOCK
2021
- replace:
2122
filename: "/etc/nginx/conf.d/discourse.conf"
2223
from: /listen 80;\s+listen \[::\]:80;\s+gzip on;/m
2324
to: |
24-
listen 443 ssl http2;
25-
listen [::]:443 ssl http2;
25+
listen 443 ssl;
26+
listen [::]:443 ssl;
27+
http2 on;
2628
SSL_TEMPLATE_SSL_BLOCK
2729
- replace:
2830
hook: ssl

0 commit comments

Comments
 (0)