summaryrefslogtreecommitdiff
path: root/f3s/git-server/helm-chart/templates/configmap-cgit.yaml
blob: 519ab26307283b2d57e885da40634a26985509c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# CGit Configuration
# Configures cgit to scan /repos for git repositories

apiVersion: v1
kind: ConfigMap
metadata:
  name: cgit-config
  namespace: cicd
data:
  cgitrc: |
    # Global settings
    root-title=f3s Git Repository Browser
    root-desc=Browse git repositories in f3s cluster

    # Set the virtual root for correct URL generation
    virtual-root=/

    # Disable caching to avoid permission issues
    cache-size=0

    # Enable git-config for per-repo settings
    enable-git-config=1

    # Remove .git suffix from repository URLs
    remove-suffix=1

    # Scan for repositories in /repos
    # This must be the last setting in the file
    scan-path=/repos