home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add plomlombot-irc setup.
[config]
/
buster
/
etc_files
/
website
/
etc
/
nginx
/
sites-available
/
website.nginx
diff --git
a/buster/etc_files/website/etc/nginx/sites-available/website.nginx
b/buster/etc_files/website/etc/nginx/sites-available/website.nginx
index 05c9a4b6b712cf2474d33b284342376f7a914798..2da877b268df37d512f4df1aa89bea23badc6e49 100644
(file)
--- a/
buster/etc_files/website/etc/nginx/sites-available/website.nginx
+++ b/
buster/etc_files/website/etc/nginx/sites-available/website.nginx
@@
-10,6
+10,8
@@
server {
location ~ /repos/clone(/.*) {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
location ~ /repos/clone(/.*) {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
+ # Commented out so only repos are served that contain a
+ # git-daemon-export-ok file.
# fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT /var/repos;
fastcgi_param PATH_INFO $1;
# fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT /var/repos;
fastcgi_param PATH_INFO $1;
@@
-28,4
+30,11
@@
server {
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
+
+ # login-protected IRC logs
+ location ~ /irclogs/([^/]+)/ {
+ auth_basic "$1 logs";
+ auth_basic_user_file /var/www/irclogs_pw/$1;
+ autoindex on;
+ }
}
}