From 2fdf1d7a25c008a135dd91bbea3ee48207226ce9 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Aug 2022 07:13:41 -0500 Subject: [PATCH] gitea: enable HTTP/2 in nginx --- roles/gitea/templates/nginx.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/gitea/templates/nginx.conf.j2 b/roles/gitea/templates/nginx.conf.j2 index 867bd4c..e6fcd2b 100644 --- a/roles/gitea/templates/nginx.conf.j2 +++ b/roles/gitea/templates/nginx.conf.j2 @@ -37,9 +37,9 @@ server { {% if gitea_ssl_enabled is defined and gitea_ssl_enabled %} server { - listen 443 ssl; + listen 443 ssl http2; {% if ansible_all_ipv6_addresses | length %} - listen [::]:443 ssl; + listen [::]:443 ssl http2; {% endif %} server_name {{ gitea_domain }};