From ba3a7bc94421f93818f9196bd8a2c32eb7d9d940 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 3 Jun 2026 17:12:58 +0200 Subject: feat: better initialization script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename `tools/build` → `net_services` `net_services` can be run from anywhere (previously it was not creating the fs archives in the right place). It also creates the directories specified in `.env`, generate a self-signed certificate if no certificate is available, initialize the first Radicale user if missing, and copy example configuration files if missing for cgit. `generate_self_signed_cert` has been removed (its code is in `net_services`) --- services/cgit/examples/cgitrc | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 services/cgit/examples/cgitrc (limited to 'services/cgit/examples/cgitrc') diff --git a/services/cgit/examples/cgitrc b/services/cgit/examples/cgitrc new file mode 100644 index 0000000..631feaa --- /dev/null +++ b/services/cgit/examples/cgitrc @@ -0,0 +1,47 @@ +# +# Global +# +css=/cgit.css +logo=/cgit.png +# Formatters +source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.py +about-filter=/usr/local/lib/cgit/filters/about-formatting.sh +commit-filter=/usr/local/lib/cgit/filters/commit/commit-filter.sh +# Mimetypes (for plain blobs) +mimetype.gif=image/gif +mimetype.html=text/html +mimetype.jpg=image/jpeg +mimetype.jpeg=image/jpeg +mimetype.pdf=application/pdf +mimetype.png=image/png +mimetype.svg=image/svg+xml + +# +# Cache +# +cache-size=1000 + +# +# Index +# +root-title=Edit this in cgitrc +root-desc=Edit this in cgitrc +root-readme=/srv/cgit/about.md +favicon=/favicon.ico + +# +# Repositories +# +enable-index-owner=1 +enable-index-links=1 +enable-commit-graph=1 +enable-log-filecount=1 +enable-log-linecount=1 +repository-sort=age +remove-suffix=1 +max-stats=year +snapshots=tar.gz zip +clone-url=http://localhost:8080/$CGIT_REPO_URL +readme=:readme.md +# This setting must be set last because settings set after repos are scanned are not applied +scan-path=/srv/git -- cgit v1.3.1