]> prime8.dev >> repos - p8d.git/commitdiff
Added gitweb conf
authorDamian Myrda <monkey.damianek@gmail.com>
Thu, 19 Sep 2024 03:19:39 +0000 (22:19 -0500)
committerDamian Myrda <monkey.damianek@gmail.com>
Thu, 19 Sep 2024 03:19:39 +0000 (22:19 -0500)
compose.yml
git/gitweb.conf [new file with mode: 0644]

index 5041e3fbca9d4e2b5295c3b5cd2c33cc2d41ffdc..29a194b2ab36ef6db8a51fd4244b08c40dfda019 100644 (file)
@@ -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 (file)
index 0000000..aa9665a
--- /dev/null
@@ -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];
+