Close out HTTP upload documentation

This commit is contained in:
2026-06-03 15:30:02 +00:00
parent 0f1ef9e622
commit dc1f1f11f9
8 changed files with 116 additions and 664 deletions

View File

@@ -136,14 +136,15 @@ go run ./cmd/distributor run --config examples/local-html.yml
Start the HTTP upload API:
```sh
go run ./cmd/distributor serve --config <config-path>
DISTRIBUTOR_EXAMPLE_UPLOAD_TOKEN=<token> \
go run ./cmd/distributor serve --config examples/http-upload-local.yml
```
Upload an archive to the configured `http_upload` pipeline associated with a bearer token:
```sh
curl -X POST http://127.0.0.1:8080/upload \
-H "Authorization: Bearer $DISTRIBUTOR_UPLOAD_TOKEN" \
-H "Authorization: Bearer $DISTRIBUTOR_EXAMPLE_UPLOAD_TOKEN" \
-H "Content-Type: application/gzip" \
--data-binary @bundle.tar.gz
```