home · contact · privacy
Add IRClogs password protection.
[config] / all_new_2018 / linkable_etc_files / web / etc / nginx / nginx.conf
index 5d95d2e4aefe478b79fd0b9c0d2d623f4d5c35ec..411aa4b8f84d52a70fecdfa376d067984def9c23 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;
+        }
     }
 }