[download-web/mirrorbits] Disable absolute redirects and enable fancyindex in download-fallback
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [download-web/mirrorbits] Disable absolute redirects and enable fancyindex in download-fallback
- Date: Mon, 29 Mar 2021 08:43:27 +0000 (UTC)
commit 6df9234b4261af1af8aa6c4c7af8513bd28bf24f
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Mar 29 10:43:07 2021 +0200
Disable absolute redirects and enable fancyindex in download-fallback
nginx/nginx.conf | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index e9b77c3..f7a3b6b 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -24,6 +24,8 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
+ absolute_redirect off;
+
server {
listen 8000 default_server;
server_name _;
@@ -52,6 +54,9 @@ http {
root /srv/ftp;
location / {
+ fancyindex on;
+ fancyindex_exact_size on;
+
sendfile on;
sendfile_max_chunk 5m;
tcp_nopush on;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]