all repos — legit @ 8586d930a3f4a8235d6383e90bbcd22762060126

web frontend for git

readme (view raw)

 1legit
 2-----
 3
 4A git web frontend written in Go.
 5
 6Pronounced however you like; I prefer channeling my inner beret-wearing test test
 7Frenchman, and saying "Oui, il est le git!"
 8
 9But yeah it's pretty legit, no cap on god fr fr.
10
11
12FEATURES
13
14• Fully customizable templates and stylesheets.
15• Cloning over http(s).
16• Less archaic HTML.
17• Not CGI.
18
19
20INSTALLING
21
22Clone it, 'go build' it.
23
24
25CONFIG
26
27Uses yaml for configuration. Looks for a 'config.yaml' in the current
28directory by default; pass the '--config' flag to point it elsewhere.
29
30Example config.yaml:
31
32    repo:
33      scanPath: /var/www/git
34      readme:
35        - readme
36        - README
37        - readme.md
38        - README.md
39      mainBranch:
40        - master
41        - main
42      ignore:
43        - foo
44        - bar
45    dirs:
46      templates: ./templates
47      static: ./static
48    meta:
49      title: git good
50      description: i think it's a skill issue
51    server:
52      name: git.icyphox.sh
53      host: 127.0.0.1
54      port: 5555
55
56These options are fairly self-explanatory, but of note are:
57
58• repo.scanPath: where all your git repos live (or die). legit doesn't
59  traverse subdirs yet.
60• repo.readme: readme files to look for. Markdown isn't rendered.
61• repo.mainBranch: main branch names to look for.
62• repo.ignore: repos to ignore.
63• server.name: used for go-import meta tags and clone URLs.
64
65
66NOTES
67
68• Run legit behind a TLS terminating proxy like relayd(8) or nginx.
69• Cloning only works in bare repos -- this is a limitation inherent to git. You
70  can still view bare repos just fine in legit.
71• The default head.html template uses my CDN to fetch fonts -- you may
72  or may not want this.
73• Pushing over https, while supported, is disabled because auth is a
74  pain. Use ssh.
75• Paths are unveil(2)'d on OpenBSD.
76
77
78IDEAS
79
80• "Private" repos only available over Tailscale.
81• Support or cgit-like filters (for readmes etc.).
82
83
84LICENSE
85
86legit is licensed under MIT.