From a433022e08daebf92e54ef281ce6f64d45b925a4 Mon Sep 17 00:00:00 2001
From: Andreas Kempe <kempe@lysator.liu.se>
Date: Sat, 21 Nov 2020 03:03:48 +0100
Subject: [PATCH] hina: nginx: limit HTTP requests to 4 ranges

Nginx appears to hang when >= 6 ranges are used in a HTTP request. Limit
the number of allowed ranges to 4 to prevent issues.
---
 files/hina/nginx.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/files/hina/nginx.conf b/files/hina/nginx.conf
index 6b872fd..df71ef6 100644
--- a/files/hina/nginx.conf
+++ b/files/hina/nginx.conf
@@ -32,6 +32,10 @@ http {
 
     keepalive_timeout  65;
 
+    # Nginx verkar hänga sig när >= 6 spann används. Begränsa
+    # till 4 spann.
+    max_ranges 4;
+
     server_tokens off;
     more_clear_headers 'Server';
 
-- 
GitLab