[download-web/mirrorbits] Try to avoid download-fallback redirects



commit 28315587be5db7ad9dec1de95b17e362b3d70fe3
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Jan 24 16:15:11 2022 +0100

    Try to avoid download-fallback redirects

 nginx/nginx.conf | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index f7a3b6b..c056f43 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -33,12 +33,18 @@ http {
         root /srv/ftp;
         fancyindex on;
 
-        location ~ .*/$ {
+        location @index {
             fancyindex on;
             fancyindex_exact_size off;
         }
 
+        # location ~ .*/$ {
+        #     fancyindex on;
+        #     fancyindex_exact_size off;
+        # }
+
         location / {
+            try_files $uri @index;
             proxy_set_header X-Forwarded-For $http_x_forwarded_for;
             proxy_set_header Host $host;
             proxy_set_header X-Real-IP $http_x_forwarded_for;


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