1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Fix http2

(cherry picked from commit fb49ef9057)
This commit is contained in:
Florent Daigniere 2024-10-15 17:14:22 +02:00 committed by Mergify
parent 6b5bb5fcd1
commit 450c78f7b0
2 changed files with 2 additions and 1 deletions

View File

@ -98,6 +98,7 @@ http {
set $webdav {{ WEBDAV_ADDRESS }}:5232;
{% endif %}
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
http2 on;
# Listen on HTTP only in kubernetes or behind reverse proxy
{% if TLS_FLAVOR in [ 'mail-letsencrypt', 'notls', 'mail' ] %}
@ -112,7 +113,6 @@ http {
listen 443 ssl{% if PROXY_PROTOCOL_443 %} proxy_protocol{% endif %};
{% if SUBNET6 %}
listen [::]:443 ssl{% if PROXY_PROTOCOL_443 %} proxy_protocol{% endif %};
http2 on;
{% endif %}
include /etc/nginx/tls.conf;

View File

@ -0,0 +1 @@
HTTP/2 does not require ipv6; in fact it does not require SSL certs either