GitWeb
Zur Navigation springen
Zur Suche springen
Links
Zielsetzung
Das Paket gitweb bietet eine einfache Webapplikation zur Verwaltung von Git-Repositories auf dem Server.
Installation
apt install gitweb
Konfiguration
/etc/gitweb.conf
$projectroot = "/home/git/repo"; ...
Nginx-Konfiguration
server { listen 80; include snippets/letsencrypt.conf; server_name gitweb.hamatoma.de; root /usr/share/gitweb; location / { return 301 https://; # enforce https } } server { listen 443 ssl http2; server_name gitweb.hamatoma.de; ssl_certificate /etc/letsencrypt/live/latest/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/latest/privkey.pem; #ssl_certificate /etc/ssl/certs/gitweb.hamatoma.de.pem; #ssl_certificate_key /etc/ssl/private/gitweb.hamatoma.de.key; access_log /var/log/nginx/a_gitweb.log; error_log /var/log/nginx/e_gitweb.log; 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; } }