# path to git projects (<project>.git)
-$projectroot = "/var/www/public_repos";
+$projectroot = "/var/public_repos";
# directory to use for temp files
# explicitely set by Debian so it's probably a good choice
# define content-type headers
types {
text/html html htm shtml;
- text/css css;
+ text/css css;
text/xml xml;
text/plain txt sh rst md;
application/xhtml+xml xhtml;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
- fastcgi_param GIT_PROJECT_ROOT /var/www/public_repos;
+ fastcgi_param GIT_PROJECT_ROOT /var/public_repos;
fastcgi_param PATH_INFO $1;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
# gitweb; this needs packages fcgiwrap and gitweb
location /repos/ {
include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
- fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
+ fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
+ fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf
sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/gitweb.conf
apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap
+cd /var/
+rm -rf www
+git clone plom@core.plomlompom.com:repos/website www
iptables-restore /etc/iptables/rules.v4