Fix Warnung: the "listen ... http2" directive is deprecated (#873)
* Fix Warnung: the "listen ... http2" directive is deprecated Signed-off-by: Tealk <tealk@anzah.email> * Update templates/web.ssl.template.yml Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com> * add on to http2 --------- Signed-off-by: Tealk <tealk@anzah.email> Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
This commit is contained in:
parent
a1d8d0bbcb
commit
7d548ad4ae
1 changed files with 5 additions and 3 deletions
|
@ -15,14 +15,16 @@ run:
|
|||
filename: "/etc/nginx/conf.d/discourse.conf"
|
||||
from: /listen 80;\s+gzip on;/m
|
||||
to: |
|
||||
listen 443 ssl http2;
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
SSL_TEMPLATE_SSL_BLOCK
|
||||
- replace:
|
||||
filename: "/etc/nginx/conf.d/discourse.conf"
|
||||
from: /listen 80;\s+listen \[::\]:80;\s+gzip on;/m
|
||||
to: |
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
SSL_TEMPLATE_SSL_BLOCK
|
||||
- replace:
|
||||
hook: ssl
|
||||
|
|
Loading…
Add table
Reference in a new issue