diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-03-28 16:51:48 +0800 | 
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-03-28 16:51:48 +0800 | 
| commit | acc2e0034bd800fde80765bacfa0eb3a91233d4c (patch) | |
| tree | b589a4e374e7b2dd6e59fc9d00bd6a67e185db1c | |
| parent | 7605582857b10a627f19a1b1a830db25aa077377 (diff) | |
| download | crupest-acc2e0034bd800fde80765bacfa0eb3a91233d4c.tar.gz crupest-acc2e0034bd800fde80765bacfa0eb3a91233d4c.tar.bz2 crupest-acc2e0034bd800fde80765bacfa0eb3a91233d4c.zip | |
fix(git): cgit clone urls.
| -rw-r--r-- | services/docker/git-server/app/cgit/private | 2 | ||||
| -rw-r--r-- | services/docker/git-server/app/cgit/public | 2 | ||||
| -rw-r--r-- | services/docker/git-server/app/lighttpd/lighttpd.conf | 6 | 
3 files changed, 6 insertions, 4 deletions
| diff --git a/services/docker/git-server/app/cgit/private b/services/docker/git-server/app/cgit/private index a5710b2..1671ff6 100644 --- a/services/docker/git-server/app/cgit/private +++ b/services/docker/git-server/app/cgit/private @@ -1,5 +1,5 @@  cache-root=/var/cache/cgit/private  include=/app/cgit/common  strict-export=cgit-export -clone-url=$CRUPEST_ROOT_URL/git/private$CGIT_REPO_URL +clone-url=$CRUPEST_ROOT_URL/git/private/$CGIT_REPO_URL  scan-path=/git/repos/private diff --git a/services/docker/git-server/app/cgit/public b/services/docker/git-server/app/cgit/public index d1b276d..630f241 100644 --- a/services/docker/git-server/app/cgit/public +++ b/services/docker/git-server/app/cgit/public @@ -1,5 +1,5 @@  cache-root=/var/cache/cgit/public  root-readme=/git/README.md  include=/app/cgit/common -clone-url=$CRUPEST_ROOT_URL/git$CGIT_REPO_URL +clone-url=$CRUPEST_ROOT_URL/git/$CGIT_REPO_URL  scan-path=/git/repos/public diff --git a/services/docker/git-server/app/lighttpd/lighttpd.conf b/services/docker/git-server/app/lighttpd/lighttpd.conf index d6c30cd..cb08baa 100644 --- a/services/docker/git-server/app/lighttpd/lighttpd.conf +++ b/services/docker/git-server/app/lighttpd/lighttpd.conf @@ -53,12 +53,14 @@ $HTTP["url"] =^ "/git" {          $HTTP["url"] =^ "/git/private" {              setenv.add-environment = ( -                "CGIT_CONFIG" => "/app/cgit/private" +                "CGIT_CONFIG" => "/app/cgit/private", +                "CRUPEST_ROOT_URL" => env.CRUPEST_ROOT_URL,              )          }          else {              setenv.add-environment = ( -                "CGIT_CONFIG" => "/app/cgit/public" +                "CGIT_CONFIG" => "/app/cgit/public", +                "CRUPEST_ROOT_URL" => env.CRUPEST_ROOT_URL,              )          } | 
