28 lines
750 B
YAML
28 lines
750 B
YAML
# Local HTTP upload example.
|
|
# Set DISTRIBUTOR_EXAMPLE_UPLOAD_TOKEN in the process environment or provide a
|
|
# secrets-directory file with that name before running `distributor serve`.
|
|
server:
|
|
http:
|
|
bind: 127.0.0.1:8080
|
|
staging_root: workspace/http-upload/staging
|
|
max_upload_size: 20MB
|
|
queue_size: 16
|
|
max_concurrency: 1
|
|
retention: 24h
|
|
upload_tokens:
|
|
- id: example-uploader
|
|
token_env: DISTRIBUTOR_EXAMPLE_UPLOAD_TOKEN
|
|
allow_pipelines:
|
|
- example-http-upload
|
|
pipelines:
|
|
- id: example-http-upload
|
|
source:
|
|
backend: http_upload
|
|
destinations:
|
|
- id: local-archive
|
|
backend: local
|
|
path: workspace/published/http-upload
|
|
publish:
|
|
source: true
|
|
html: false
|