home · contact · privacy
Fix irclogs location matching in nginx conf.
[config] / all_new_2018 / linkable_etc_files / web / etc / nginx / nginx.conf
index 5d95d2e4aefe478b79fd0b9c0d2d623f4d5c35ec..798d791f0ff88d62e483170d83af765b86462de2 100644 (file)
@@ -63,5 +63,15 @@ http {
             fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
             fastcgi_pass unix:/var/run/fcgiwrap.socket;
         }
+
+        location ~ /irclogs/([^/]+)/ {
+            auth_basic "$1 logs";
+            auth_basic_user_file /var/www/irclogs_pw/$1;
+            autoindex on;
+        }
+
+        location /irclogs/ {
+            autoindex on;
+        }
     }
 }