[download-web/mirrorbits] nginx: Fix permissions errors




commit 988c7591a8ac1a6171c5a2630be8a5b61e4056a8
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Dec 8 17:11:30 2020 +0100

    nginx: Fix permissions errors

 nginx/Dockerfile | 4 ++--
 nginx/nginx.conf | 4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/nginx/Dockerfile b/nginx/Dockerfile
index ee611de..b890ab1 100644
--- a/nginx/Dockerfile
+++ b/nginx/Dockerfile
@@ -1,8 +1,8 @@
 FROM alpine:3.12
 
 RUN apk add --no-cache nginx nginx-mod-http-fancyindex && \
-    ln -sf /dev/stdout /var/log/nginx/access.log \
-    ln -sf /dev/stderr /var/log/nginx/error.log
+    ln -sf /dev/stdout /var/log/nginx/access.log && \
+    ln -sf /dev/stderr /var/log/nginx/error.log 
 
 ADD nginx.conf /etc/nginx/nginx.conf
 
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 9c2eac5..bf3b946 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -3,7 +3,7 @@ worker_processes  1;
 error_log  /dev/stderr warn;
 pid        /tmp/nginx.pid;
 
-include /etc/nginx/modules/*.conf;
+load_module /usr/lib/nginx/modules/ngx_http_fancyindex_module.so;
 
 events {
     worker_connections  1024;
@@ -41,8 +41,6 @@ http {
         location ~ .*/$ {
             fancyindex on;
             fancyindex_exact_size off;
-            fancyindex_header /srv/ftp/FGO-HEADER.html local;
-            fancyindex_footer /srv/ftp/FGO-FOOTER.html local;
         }
 
         location / {


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