gitkk/server
zhenyi 729604f13b feat(server): add repository prefix path configuration and service struct
- Add REPO_PREFIX_PATH environment variable support in Dockerfile and main.rs
- Introduce GitksService struct with repo_prefix field to manage repository paths
- Implement resolve and resolve_for_init methods for repository path handling
- Add path traversal protection and validation for repository operations
- Update all service implementations to use self.resolve instead of global resolve
- Modify serve function to accept repo_prefix parameter and pass to GitksService
- Remove global resolve functions and integrate them into GitksService struct
- Add proper initialization of repo directory from environment variable
2026-06-04 14:18:12 +08:00
..
archive.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
blame.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
branch.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
commit.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
diff.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
merge.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
mod.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
pack.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
repository_maint.rs feat(server): add comprehensive Git repository services with test coverage 2026-06-04 14:10:21 +08:00
repository.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
tag.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00
tree.rs feat(server): add repository prefix path configuration and service struct 2026-06-04 14:18:12 +08:00