server

command
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Command server is the thin executable entrypoint for the EasyVCS VCS protocol server. All protocol logic lives in github.com/easylab-platform/ easyvcs/server; this file only parses flags, opens the central store, and starts the HTTP listener (default :8996, h1 + h2c).

Provide the store via EASYVCS_DB_DRIVER (sqlite|postgres) and EASYVCS_DB_DSN. Auth isn't configured by env here: tokens/users are resolved from the store (store.LookupToken) on each request, and ACLs come from namespace_members / branch_acl. When the store has no users the instance is open (anonymous).

Operational env: EASYVCS_MAX_BODY bounds request bodies (bytes; default 512MiB). Set EASYVCS_TRUSTED_PROXY to honor X-Forwarded-For for audit logs (only when running behind a reverse proxy you control).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL