From 797a1404213173791a5f4126a77ad383ceb00064 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 4 Mar 2024 22:34:28 -0600 Subject: initial migration to test org-mode --- content/blog/2023-09-15-gitweb.md | 77 --------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 content/blog/2023-09-15-gitweb.md (limited to 'content/blog/2023-09-15-gitweb.md') diff --git a/content/blog/2023-09-15-gitweb.md b/content/blog/2023-09-15-gitweb.md deleted file mode 100644 index 8952cdb..0000000 --- a/content/blog/2023-09-15-gitweb.md +++ /dev/null @@ -1,77 +0,0 @@ -+++ -date = 2023-09-15 -title = "GitWeb via Nginx" -description = "A guide to self-hosting GitWeb using the Nginx web server." -+++ - -## Overview - -[GitWeb](https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb) is a -simple web-based visualizer for git repositories. By default, GitWeb -will only run with the `lighttpd` or `webrick` web -servers. - -However, this guide will show you how to keep GitWeb running in the -background and display information for all repositories in a chosen -directory. - -See below for the final result: - -![Gitweb](https://img.cleberg.net/blog/20230915-gitweb/gitweb.png) - -## Install Dependencies - -To start, you'll need install the following packages: - -```sh -sudo apt install git gitweb fcgiwrap nginx -``` - -## Configure Nginx - -Once installed, create an Nginx configuration file. - -```sh -sudo nano /etc/nginx/sites-available/git.example.com -``` - -```conf -server { - listen 80; - server_name example.com; - - 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; - } -} -``` - -To make the configuration active, you need to symlink it and then -restart Nginx. - -```sh -sudo ln -s /etc/nginx/sites-available/git.example.com /etc/nginx/sites-enabled/git.example.com -sudo systemctl restart nginx.service -``` - -The GitWeb application should now be available via the URL you set in -the Nginx configuration above. - -## Customize GitWeb - -If you need to, you can customize many things about Gitweb by editing -the [gitweb.conf](https://git-scm.com/docs/gitweb.conf) file. - -```sh -sudo nano /etc/gitweb.conf -``` -- cgit v1.2.3-70-g09d2