legit

legit

Docker app from grtgbln's Repository

Overview

A web frontend for git

legit

A git web frontend written in Go.

Pronounced however you like; I prefer channeling my inner beret-wearing Frenchman, and saying "Oui, il est le git!"

But yeah it's pretty legit, no cap on god fr fr.

FEATURES

• Fully customizable templates and stylesheets. • Cloning over http(s). • Less archaic HTML. • Not CGI.

INSTALLING

Clone it, 'go build' it.

CONFIG

Uses yaml for configuration. Looks for a 'config.yaml' in the current directory by default; pass the '--config' flag to point it elsewhere.

Example config.yaml:

repo:
  scanPath: /var/www/git
  readme:
    - readme
    - README
    - readme.md
    - README.md
  mainBranch:
    - master
    - main
  ignore:
    - foo
    - bar
dirs:
  templates: ./templates
  static: ./static
meta:
  title: git good
  description: i think it's a skill issue
  syntaxHighlight: monokailight
server:
  name: git.icyphox.sh
  host: 127.0.0.1
  port: 5555

These options are fairly self-explanatory, but of note are:

• repo.scanPath: where all your git repos live (or die). legit doesn't traverse subdirs yet. • dirs: use this to override the default templates and static assets. • repo.readme: readme files to look for. • repo.mainBranch: main branch names to look for. • repo.ignore: repos to ignore, relative to scanPath. • repo.unlisted: repos to hide, relative to scanPath. • server.name: used for go-import meta tags and clone URLs. • meta.syntaxHighlight: this is used to select the syntax theme to render. If left blank or removed, the native theme will be used. If an invalid theme is set in this field, it will default to "monokailight". For more information about themes, please refer to chroma's gallery 1.

NOTES

• Run legit behind a TLS terminating proxy like relayd(8) or nginx. • Cloning only works in bare repos -- this is a limitation inherent to git. You can still view non-bare repos just fine in legit. • Pushing over https, while supported, is disabled because auth is a pain. Use ssh. • Paths are unveil(2)'d on OpenBSD. • Docker images are available ghcr.io/icyphox/legit:{master,latest,vX.Y.Z}. 2

LICENSE

legit is licensed under MIT.

Install Legit on Unraid in a few clicks.

Find Legit in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for Legit Review the template variables and paths Click Install

Requirements


        Expects a `config.yaml` file in the Config Path. See documentation: https://github.com/icyphox/legit/blob/master/config.yaml
    

Details

Repository
ghcr.io/icyphox/legit:latest
Last Updated2026-07-15
First Seen2025-01-31

Runtime arguments

Web UI
http://[IP]:[PORT:5555]/
Network
bridge
Privileged
false

Template configuration

Web UI PortPorttcp

Container Port: 5555

Target
5555
Default
5555
Value
5555
Repo StoragePath

Path to git repository storage

Target
/var/www/git
Config PathPath

Path to config files

Target
/config
Default
/mnt/user/appdata/legit/config
Value
/mnt/user/appdata/legit/config