aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-06-14 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-07-26 08:00:00 +0800
commit5cb75c1af0a0418974e1b20368e4fbf940912f9e (patch)
tree36aa7e46432257700291be8f927f06856c4b3c75 /README.md
parentgit: use system's git upload-pack (diff)
downloadlegitrx-5cb75c1af0a0418974e1b20368e4fbf940912f9e.tar.gz
legitrx-5cb75c1af0a0418974e1b20368e4fbf940912f9e.tar.zst
legitrx-5cb75c1af0a0418974e1b20368e4fbf940912f9e.zip
Fork init
Diffstat (limited to '')
-rw-r--r--README.md67
1 files changed, 67 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..fdcd067
--- /dev/null
+++ b/README.md
@@ -0,0 +1,67 @@
+# Legitrx
+
+This is [Runxi Yu](https://runxiyu.org)'s fork of
+[icyphox](https://icyphox.sh/)'s [legit](https://git.icyphox.sh/legit/)
+project. It aims to replace the use of
+[cgit](https://git.zx2c4.com/cgit/about/) Runxi's servers.
+
+At its current state, you should not use this fork. Use upstream instead.
+
+## Features
+
+- Customizable templates and stylesheets.
+- Cloning over HTTPS.
+- Not CGI.
+
+## Building
+
+```sh
+git clone https://git.sr.ht/~runxiyu/legitrx
+go build
+```
+
+## Configuration
+
+If no filename is specified via the `--config` option, it looks for `config.yaml` in the current working directory.
+
+```yaml
+repo:
+ scanPath: /srv/git
+ readme:
+ - README
+ - README.md
+ mainBranch:
+ - master
+ - main
+ ignore:
+ - repo-to-hide
+dirs:
+ templates: ./templates
+ static: ./static
+meta:
+ title: Legitrx
+ description: Testing
+server:
+ name: git.runxiyu.org
+ host: 127.0.0.1
+ port: 5555
+ ```
+
+`server.name` is used for `go import` meta tags and clone URLs.
+
+## Notes
+
+- Run legitrx behind a TLS terminating proxy like
+ [relayd(8)](https://man.openbsd.org/relayd.8) or nginx.
+- Cloning only works in bare repos.
+- Pushing over https, while supported, is disabled because auth is a pain. Use
+ ssh or [Gitolite](https://gitolite.com/gitolite/).
+- Paths are [unveil(2)](https://man.openbsd.org/unveil.2)'d on OpenBSD.
+
+## Ideas
+
+- Code highlighting support.
+
+## License
+
+Legitrx is licensed under the MIT license.