From: Clifton Palmer Date: Sun, 20 Apr 2025 11:19:54 +0000 (-0500) Subject: Only allow export of approved repos X-Git-Tag: 0.2.1 X-Git-Url: http://git.purplebirdman.com/gitweb.git/commitdiff_plain/e312b859fda83f9cee98d5bfd2fd554108f055ec?ds=inline Only allow export of approved repos --- diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index 5f8fe35..a0d7636 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -6,7 +6,7 @@ networks: driver: overlay services: web: - image: cjpalmer/gitweb:0.2.0 + image: cjpalmer/gitweb:0.2.1 volumes: - /srv/git:/srv/git:ro - ./gitweb.conf:/etc/gitweb.conf @@ -14,7 +14,7 @@ services: - proxy - backend cgi: - image: cjpalmer/gitweb-cgi:0.2.0 + image: cjpalmer/gitweb-cgi:0.2.1 environment: - BASE_URL=https://git.purplebirdman.com/ volumes: diff --git a/docker-compose.yml b/docker-compose.yml index d3dee01..cf4cc32 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ version: '3' services: web: build: web - image: cjpalmer/gitweb:0.2.0 + image: cjpalmer/gitweb:0.2.1 volumes: - /srv/git:/srv/git:ro - ./gitweb.conf:/etc/gitweb.conf @@ -13,7 +13,7 @@ services: - 80:80 cgi: build: cgi - image: cjpalmer/gitweb-cgi:0.2.0 + image: cjpalmer/gitweb-cgi:0.2.1 environment: - BASE_URL= volumes: diff --git a/gitweb.conf b/gitweb.conf index 29c463f..8a6b0ee 100644 --- a/gitweb.conf +++ b/gitweb.conf @@ -13,6 +13,10 @@ $home_link = "/"; # file with project list; by default, simply scan the projectroot dir. $projects_list = $projectroot; +# https://git-scm.com/docs/gitweb +# only allow export of approved repos +our $export_ok = "git-daemon-export-ok"; + # stylesheet to use #@stylesheets = ("static/gitweb.css");