X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=all_new_2018%2Flinkable_etc_files%2Fweb%2Fetc%2Fnginx%2Fnginx.conf;h=44222cc7a9933977cfe19cfd78618049de64017a;hb=7ff79a442c7a0cf705b8924719232dd04b88e640;hp=411aa4b8f84d52a70fecdfa376d067984def9c23;hpb=9f911349477be35286ddafd553a500806325dca6;p=config
diff --git a/all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf b/all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
index 411aa4b..44222cc 100644
--- a/all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
+++ b/all_new_2018/linkable_etc_files/web/etc/nginx/nginx.conf
@@ -3,6 +3,9 @@ user www-data;
worker_processes auto;
pid /run/nginx.pid;
+# we need this for the xslt_stylesheet directive below
+load_module modules/ngx_http_xslt_filter_module.so;
+
# is expected even if empty
events {
}
@@ -64,14 +67,18 @@ http {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
- location /irclogs/([^/]+)/ {
+ # login-protected IRC logs
+ location ~ /irclogs/([^/]+)/ {
auth_basic "$1 logs";
auth_basic_user_file /var/www/irclogs_pw/$1;
autoindex on;
}
+ # entry for IRC logs
location /irclogs/ {
autoindex on;
+ autoindex_format xml;
+ xslt_stylesheet /var/www/autoindex.xslt;
}
}
}