summaryrefslogtreecommitdiffstats
path: root/readme
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 10:52:16 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-19 10:52:16 +0530
commit9a8041a274ffb09e94260e081cca3ef0cb8e456b (patch)
tree038ced2afcd99d03a1e25c2a920d6b7454030e93 /readme
parentfc65017b75f46e02bb32f43dce61fcea8090f785 (diff)
downloadlegit-9a8041a274ffb09e94260e081cca3ef0cb8e456b.tar.gz
legit-9a8041a274ffb09e94260e081cca3ef0cb8e456b.tar.bz2
legit-9a8041a274ffb09e94260e081cca3ef0cb8e456b.zip
readme: more info
Diffstat (limited to 'readme')
-rw-r--r--readme59
1 files changed, 58 insertions, 1 deletions
diff --git a/readme b/readme
index f6dc662..71775e1 100644
--- a/readme
+++ b/readme
@@ -6,8 +6,65 @@ A git web frontend written in Go.
Pronounced however you like; I prefer channeling my beret-wearing
Frenchman, and say "Oui, il est le git!"
-But yeah it's pretty legit, on god no cap fr fr.
+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
+ dirs:
+ templates: ./templates
+ static: ./static
+ meta:
+ title: git good
+ description: i think it's a skill issue
+ 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.
+• repo.readme: readme files to look for. Markdown isn't rendered.
+• repo.mainBranch: main branch names to look for.
+• server.name: used for go-import meta tags and clone URLs.
+
+
+NOTES
+
+• Run legit behind a TLS terminating proxy like relayd(8) or nginx.
+• The default head.html template uses my CDN to fetch fonts -- you may
+ or may not want this.
+• Support or cgit-like filters (for readmes etc.) is planned.
+• Pushing over https, while supported, is disabled because auth is a
+ pain. Use ssh.
+• "Private" repos only available over Tailscale is planned.