# larcs server configuration example # Copy to /etc/larcs/config.yaml or ~/.larcs/config.yaml server: host: "0.0.0.0" port: 8080 base_url: "https://larc.example.com" tls: enabled: false cert: "/etc/larcs/cert.pem" key: "/etc/larcs/key.pem" auth: enabled: true htpasswd_file: "/etc/larcs/htpasswd" realm: "Larc Repository" storage: root: "/var/lib/larcs/repos" max_repo_size: "10GB" max_file_size: "100MB" logging: level: "info" # debug, info, warn, error format: "json" # json, text file: "" # empty = stdout # Repository definitions # Each repo is accessible at {base_url}/{name} repositories: # Public repository - anyone can read, auth required to write - name: "opensource" path: "opensource" # relative to storage.root public: true allowed_users: # full read/write access - "admin" - "maintainer" # Private repository - auth required for everything - name: "internal" path: "internal" public: false allowed_users: - "admin" - "alice" - "bob" read_only_users: # can only read - "guest" - "ci-bot" # Another example - name: "docs" path: "documentation" public: true allowed_users: - "admin" - "docs-team"