diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 17:19:10 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-05-17 17:19:10 +0900 |
| commit | 7e8e89ef2e2b2302c92e03429e43be9b1db08d49 (patch) | |
| tree | e1e34abb26d098c55b46a5d2703b0757bea3a0a1 /cgit | |
| parent | dd7142e08cd66656514c7468ce12be72674900a5 (diff) | |
Add cgit web interface at git.yyamashita.com
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cgit')
| -rw-r--r-- | cgit/cgitrc | 7 | ||||
| -rw-r--r-- | cgit/deploy.sh | 4 | ||||
| -rw-r--r-- | cgit/docker-compose.yml | 15 |
3 files changed, 26 insertions, 0 deletions
diff --git a/cgit/cgitrc b/cgit/cgitrc new file mode 100644 index 0000000..1892748 --- /dev/null +++ b/cgit/cgitrc @@ -0,0 +1,7 @@ +virtual-root=/ +remove-suffix=1 +enable-http-clone=0 +enable-index-links=1 +enable-log-linecount=1 + +scan-path=/var/git diff --git a/cgit/deploy.sh b/cgit/deploy.sh new file mode 100644 index 0000000..f8b3f40 --- /dev/null +++ b/cgit/deploy.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")" +docker compose up -d diff --git a/cgit/docker-compose.yml b/cgit/docker-compose.yml new file mode 100644 index 0000000..5e59177 --- /dev/null +++ b/cgit/docker-compose.yml @@ -0,0 +1,15 @@ +services: + cgit: + image: klakegg/cgit:alpine + container_name: cgit + volumes: + - ./cgitrc:/etc/cgitrc:ro + - /var/git:/var/git:ro + restart: unless-stopped + networks: + - web + +networks: + web: + external: true + name: web |
