[download-web/mirrorbits] Add download-fallback



commit 3355d69aae9fbf4be080a5ac66ea710605628c13
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Fri Mar 19 09:01:32 2021 +0100

    Add download-fallback

 nginx/nginx.conf | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 423e1c3..13ee1b4 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -24,13 +24,6 @@ http {
     include       /etc/nginx/mime.types;
     default_type  application/octet-stream;
 
-    sendfile        on;
-    #tcp_nopush     on;
-
-    keepalive_timeout  65;
-
-    #gzip  on;
-
     server {
         listen 8000 default_server;
         server_name _;
@@ -51,4 +44,19 @@ http {
             proxy_pass http://127.0.0.1:8080;
         }
     }
+
+    server {
+        listen 8000 default_server;
+        server_name download-fallback.gnome.org;
+
+        root /srv/ftp;
+
+        location / {
+            sendfile on;
+            sendfile_max_chunk 5m;
+            tcp_nopush on;
+            tcp_nodelay on;
+            keepalive_timeout 65;
+        }
+    }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]