nginx: use http2 directive

following the deprecation warning in the logs
See http://nginx.org/en/docs/http/ngx_http_v2_module.html
This commit is contained in:
maxlath
2025-02-27 19:38:20 +01:00
parent 4cffed239d
commit 238f2c51d0

View File

@@ -29,8 +29,11 @@ server {
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name ${PUBLIC_HOSTNAME};
ssl_certificate /etc/letsencrypt/live/${PUBLIC_HOSTNAME}/fullchain.pem;