larc r11

58 lines ยท 1.3 KB Raw
1 # larcs server configuration example
2 # Copy to /etc/larcs/config.yaml or ~/.larcs/config.yaml
3
4 server:
5 host: "0.0.0.0"
6 port: 8080
7 base_url: "https://larc.example.com"
8 tls:
9 enabled: false
10 cert: "/etc/larcs/cert.pem"
11 key: "/etc/larcs/key.pem"
12
13 auth:
14 enabled: true
15 htpasswd_file: "/etc/larcs/htpasswd"
16 realm: "Larc Repository"
17
18 storage:
19 root: "/var/lib/larcs/repos"
20 max_repo_size: "10GB"
21 max_file_size: "100MB"
22
23 logging:
24 level: "info" # debug, info, warn, error
25 format: "json" # json, text
26 file: "" # empty = stdout
27
28 # Repository definitions
29 # Each repo is accessible at {base_url}/{name}
30 repositories:
31 # Public repository - anyone can read, auth required to write
32 - name: "opensource"
33 path: "opensource" # relative to storage.root
34 public: true
35 allowed_users: # full read/write access
36 - "admin"
37 - "maintainer"
38
39 # Private repository - auth required for everything
40 - name: "internal"
41 path: "internal"
42 public: false
43 allowed_users:
44 - "admin"
45 - "alice"
46 - "bob"
47 read_only_users: # can only read
48 - "guest"
49 - "ci-bot"
50
51 # Another example
52 - name: "docs"
53 path: "documentation"
54 public: true
55 allowed_users:
56 - "admin"
57 - "docs-team"
58