Linux - Git - instalace gitweb na ubuntu s nginx

Linux - Git - instalace gitweb na ubuntu s nginx

Postup instalace gitweb na ubuntu při použití s webserverem nginx.

Instalace

apt install git fcgiwrap gitweb nginx

systemctl start fcgiwrap

 

Nastavení nginx

server {
listen 89;
server_name gitweb;

location /index.cgi {
root /usr/share/gitweb/;
include fastcgi_params;
gzip off;
fastcgi_param SCRIPT_NAME $uri;
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}

location / {
root /usr/share/gitweb/;
index index.cgi;
}
}

 

Restart nginx

sudo service nginx restart

 

Nyní bude gitweb dostupný na localhost:89

 

 

Chyba 404 - No projects found

Je třeba správně nastavit práva

chown -R git:www-data /home/git

A mít nastavenou správně cestu k repositářům v souboru /etc/gitweb.conf

Jak se ti článek líbil?

Komentáře (0)

Přidat komentář