From: Damian Myrda Date: Thu, 19 Sep 2024 03:19:39 +0000 (-0500) Subject: Added gitweb conf X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=60decdc74cbeb7846e3645f63fe84806e9fd8a6c;p=p8d.git Added gitweb conf --- diff --git a/compose.yml b/compose.yml index 5041e3f..29a194b 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,7 @@ services: image: crazymax/fail2ban:latest container_name: fail2ban volumes: - - ./jail:/etc/fail2ban/jail.local + - ./jail:/etc/fail2ban/jail.local:ro - /var/log/mail/mail.log:/var/log/mail/mail.log:ro - /var/log/auth.log:/var/log/auth.log:ro networks: @@ -31,7 +31,7 @@ services: networks: - www volumes: - - ./caddy:/etc/caddy/Caddyfile + - ./caddy:/etc/caddy/Caddyfile:ro - ./web/data/:/data/caddy/ - ./web/config/:/config/caddy/ restart: always @@ -54,7 +54,7 @@ services: - ./mail/state/:/var/mail-state/ - ./mail/logs/:/var/log/mail/ - ./mail/config/:/tmp/docker-mailserver/ - - ./web/data/certificates/acme.zerossl.com-v2-dv90/mail.prime8.dev/:/etc/certificates/ + - ./web/data/certificates/acme.zerossl.com-v2-dv90/mail.prime8.dev/:/etc/certificates/:ro depends_on: - web cap_add: @@ -77,6 +77,7 @@ services: - repos volumes: - ./git/:/var/lib/git/:ro + - ./git/gitweb.conf:/etc/gitweb.conf:ro expose: - "80" networks: @@ -89,7 +90,7 @@ services: - DOMAIN=csc.prime8.dev env_file: ./csc/env volumes: - - ./csc/auth.json:/app/google_auth.json + - ./csc/auth.json:/app/google_auth.json:ro expose: - "80" networks: diff --git a/git/gitweb.conf b/git/gitweb.conf new file mode 100644 index 0000000..aa9665a --- /dev/null +++ b/git/gitweb.conf @@ -0,0 +1,21 @@ +# The directories where your projects are. Must not end with a slash. +our $projectroot = "/var/lib/git/repositories"; + +# file with project list; by default, simply scan the projectroot dir. +our $projects_list = "/var/lib/git/projects.list"; + +# Base URLs for links displayed in the web interface. +#our @git_base_url_list = qw(git://localhost http://git@localhost); +# +# To display owner +our $feature{'owner'}{'default'} = [1]; + +# To display repository description +our $feature{'descr'}{'default'} = [1]; + +# To enable "blame" view (showing the author of each line in a source file), add the following line +$feature{'blame'}{'default'} = [1]; + +# To enable syntax highlighting with Gitweb, you have to first install the highlight package +$feature{'highlight'}{'default'} = [1]; +