aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE (renamed from license)0
-rw-r--r--README.md81
-rw-r--r--config.yaml8
-rw-r--r--readme87
4 files changed, 85 insertions, 91 deletions
diff --git a/license b/LICENSE
index fc9152a..fc9152a 100644
--- a/license
+++ b/LICENSE
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6da7232
--- /dev/null
+++ b/README.md
@@ -0,0 +1,81 @@
+# legitrx
+
+This is [Runxi Yu](https://runxiyu.org)'s fork of
+[icyphox](https://icyphox.sh/)'s
+[legitrx](https://git.icyphox.sh/legitrx/) project
+
+The README hasn't really been updated yet and not much has happened in
+the fork yet. Just use upstream for now.
+
+A git web frontend written in Go.
+
+## 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
+ 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). legitrx 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.
+- server.name: used for go-import meta tags and clone URLs.
+
+## NOTES
+
+- Run legitrx 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 bare repos just fine in legitrx.
+- The default head.html template uses my CDN to fetch fonts -- you may
+ or may not want this.
+- Pushing over https, while supported, is disabled because auth is a
+ pain. Use ssh.
+- Paths are unveil(2)'d on OpenBSD.
+
+## IDEAS
+
+- Support for filters for markdown rendering and code highlighting.
+
+## LICENSE
+
+legitrx is licensed under MIT.
diff --git a/config.yaml b/config.yaml
index 7333e95..909509f 100644
--- a/config.yaml
+++ b/config.yaml
@@ -1,5 +1,5 @@
repo:
- scanPath: /var/www/git
+ scanPath: /srv/git
readme:
- readme
- README
@@ -12,9 +12,9 @@ dirs:
templates: ./templates
static: ./static
meta:
- title: git good
- description: i think it's a skill issue
+ title: legitrx
+ description: no description yet
server:
- name: git.icyphox.sh
+ name: git.runxiyu.org
host: 127.0.0.1
port: 5555
diff --git a/readme b/readme
deleted file mode 100644
index 8c98317..0000000
--- a/readme
+++ /dev/null
@@ -1,87 +0,0 @@
-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
- 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.
-• server.name: used for go-import meta tags and clone URLs.
-
-
-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 bare repos just fine in legit.
-• The default head.html template uses my CDN to fetch fonts -- you may
- or may not want this.
-• Pushing over https, while supported, is disabled because auth is a
- pain. Use ssh.
-• Paths are unveil(2)'d on OpenBSD.
-
-
-IDEAS
-
-• "Private" repos only available over Tailscale.
-• Support or cgit-like filters (for readmes etc.).
-
-
-LICENSE
-
-legit is licensed under MIT.