cli: Correct environment variables needed for azure store
Closes https://github.com/tus/tusd/issues/660
This commit is contained in:
parent
965a011b1b
commit
b47294267a
|
@ -77,7 +77,7 @@ func ParseFlags() {
|
|||
flag.BoolVar(&Flags.S3DisableSSL, "s3-disable-ssl", false, "Disable SSL and only use HTTP for communication with S3 (experimental and may be removed in the future)")
|
||||
flag.StringVar(&Flags.GCSBucket, "gcs-bucket", "", "Use Google Cloud Storage with this bucket as storage backend (requires the GCS_SERVICE_ACCOUNT_FILE environment variable to be set)")
|
||||
flag.StringVar(&Flags.GCSObjectPrefix, "gcs-object-prefix", "", "Prefix for GCS object names")
|
||||
flag.StringVar(&Flags.AzStorage, "azure-storage", "", "Use Azure BlockBlob Storage with this container name as a storage backend (requires the AZURE_ACCOUNT_NAME and AZURE_ACCOUNT_KEY environment variable to be set)")
|
||||
flag.StringVar(&Flags.AzStorage, "azure-storage", "", "Use Azure BlockBlob Storage with this container name as a storage backend (requires the AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY environment variable to be set)")
|
||||
flag.StringVar(&Flags.AzContainerAccessType, "azure-container-access-type", "", "Access type when creating a new container if it does not exist (possible values: blob, container, '')")
|
||||
flag.StringVar(&Flags.AzBlobAccessTier, "azure-blob-access-tier", "", "Blob access tier when uploading new files (possible values: archive, cool, hot, '')")
|
||||
flag.StringVar(&Flags.AzObjectPrefix, "azure-object-prefix", "", "Prefix for Azure object names")
|
||||
|
|
|
@ -92,17 +92,28 @@ options:
|
|||
|
||||
```
|
||||
$ tusd -help
|
||||
Usage of tusd:
|
||||
-azure-blob-access-tier string
|
||||
Blob access tier when uploading new files (possible values: archive, cool, hot, '')
|
||||
-azure-container-access-type string
|
||||
Access type when creating a new container if it does not exist (possible values: blob, container, '')
|
||||
-azure-endpoint string
|
||||
Custom Endpoint to use for Azure BlockBlob Storage (requires azure-storage to be pass)
|
||||
-azure-object-prefix string
|
||||
Prefix for Azure object names
|
||||
-azure-storage string
|
||||
Use Azure BlockBlob Storage with this container name as a storage backend (requires the AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY environment variable to be set)
|
||||
-base-path string
|
||||
Basepath of the HTTP server (default "/files/")
|
||||
-behind-proxy
|
||||
Respect X-Forwarded-* and similar headers which may be set by proxies
|
||||
-cpuprofile string
|
||||
write cpu profile to file
|
||||
-expose-metrics
|
||||
Expose metrics about tusd usage (default true)
|
||||
-gcs-bucket string
|
||||
Use Google Cloud Storage with this bucket as storage backend (requires the GCS_SERVICE_ACCOUNT_FILE environment variable to be set)
|
||||
-gcs-object-prefix string
|
||||
Prefix for GCS object names (can't contain underscore character)
|
||||
Prefix for GCS object names
|
||||
-hooks-dir string
|
||||
Directory to search for available hooks scripts
|
||||
-hooks-enabled-events string
|
||||
|
@ -135,6 +146,10 @@ Usage of tusd:
|
|||
Port to bind HTTP server to (default "1080")
|
||||
-s3-bucket string
|
||||
Use AWS S3 with this bucket as storage backend (requires the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION environment variables to be set)
|
||||
-s3-disable-content-hashes
|
||||
Disable the calculation of MD5 and SHA256 hashes for the content that gets uploaded to S3 for minimized CPU usage (experimental and may be removed in the future)
|
||||
-s3-disable-ssl
|
||||
Disable SSL and only use HTTP for communication with S3 (experimental and may be removed in the future)
|
||||
-s3-endpoint string
|
||||
Endpoint to use S3 compatible implementations like minio (requires s3-bucket to be pass)
|
||||
-s3-object-prefix string
|
||||
|
@ -143,6 +158,8 @@ Usage of tusd:
|
|||
Size in bytes of the individual upload requests made to the S3 API. Defaults to 50MiB (experimental and may be removed in the future) (default 52428800)
|
||||
-s3-transfer-acceleration
|
||||
Use AWS S3 transfer acceleration endpoint (requires -s3-bucket option and Transfer Acceleration property on S3 bucket to be set)
|
||||
-show-greeting
|
||||
Show the greeting message (default true)
|
||||
-timeout int
|
||||
Read timeout for connections in milliseconds. A zero value means that reads will not timeout (default 6000)
|
||||
-tls-certificate string
|
||||
|
@ -159,4 +176,5 @@ Usage of tusd:
|
|||
Enable verbose logging output (default true)
|
||||
-version
|
||||
Print tusd version information
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue