summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMarc Pervaz Boocha <mboocha@sudomsg.com>2025-07-27 15:43:06 +0530
committerMarc Pervaz Boocha <mboocha@sudomsg.com>2025-07-27 15:43:06 +0530
commit41178f6bad1f2e1eaed462475cb7aa26185dc0ac (patch)
tree8c025140c6d1d35d02246ea413b135da93021532 /README.md
downloadgopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.tar
gopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.tar.gz
gopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.tar.bz2
gopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.tar.lz
gopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.tar.xz
gopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.tar.zst
gopkgserver-41178f6bad1f2e1eaed462475cb7aa26185dc0ac.zip
Initial Commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..16f4b75
--- /dev/null
+++ b/README.md
@@ -0,0 +1,37 @@
+# GOPKGSERVER
+
+A minimal Go server for serving vanity URLs, configurable via TOML.
+
+## Status
+
+**Alpha** — functional but rough. No tests yet. Interface and config format may change.
+
+## Features
+
+- Serves vanity URLs for `go get`
+- Configurable with TOML
+- Supports VCS repositories (e.g., git)
+- Custom directory and file view URLs
+
+## Usage
+
+```bash
+gopkgserver -config /path/to/config.toml
+```
+
+## Configuration
+
+Configuration is passed via the -config flag as a TOML file. Example structure:
+
+``` toml
+[server]
+address = ":6000"
+
+[repo."go.example.com/cache"]
+repo = "https://git.example.com/mirror/cache.git"
+vcs = "git"
+home = "-"
+directory = "https://git.example.com/mirror/cache.git/tree/{/dir}"
+file = "https://git.example.com/cache/mirror/cache.git/tree/{/dir}/{file}#n{line}"
+```
+