aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMroik <mroik@delayed.space>2026-01-26 18:48:24 +0100
committerMroik <mroik@delayed.space>2026-01-26 18:57:03 +0100
commit26591037eefdc7e815b30a91eaea8f5dbd4c1764 (patch)
treec10aa2f2ea37639b88cb7dae25b70da2061eaef0
parent20b2a65d622b08fd50e7bd511233f639aca027dd (diff)
Add README
-rw-r--r--README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..1b9e83b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,31 @@
+Before building you need to download the `cgit` source code. There's already a
+reference to it as a submodule. To download just run `git submodule update
+--init --recursive`.
+
+After running the container you just configure your webserver to use the exposed
+unix socket (`./stuff/fcgi.sock`) with `fastcgi`.
+
+Following a Caddy config example using the official caddy docker alpine image:
+```Cadyfile
+my.cgit.domain {
+ handle_path /static/* {
+ root /srv/cgit
+ file_server
+ }
+
+ handle {
+ reverse_proxy unix//fcgi.sock {
+ transport fastcgi {
+ env SCRIPT_FILENAME /cgit/www/cgit.cgi
+ }
+ }
+ }
+}
+```
+
+Obviously when using caddy you have to mount the cgit `www` folder onto the
+caddy container as well. The same goes for the socket exposed by this container.
+So everytime you restart this container you need to restart the caddy container.
+
+Note that `SCRIPT_FILENAME` is set to the location of cgit file in the cgit
+container.
XMR address: 854DmXNrxULU3ZFJVs4Wc8PFhbq29RhqHhY8W6cdWrtFN3qmooKyyeYPcDzZTNRxphhJ5UzASQfAdEMwSteVqymk28aLhqj