feat: add support for HTTPS proxy for AWS S3 requests in Techdocs
Signed-off-by: Jos Craw <me.joscraw@gmail.com>
This commit is contained in:
@@ -77,6 +77,7 @@ Options:
|
||||
--azureAccountKey <AZURE ACCOUNT KEY>
|
||||
--awsRoleArn <AWS ROLE ARN>
|
||||
--awsEndpoint <AWS ENDPOINT>
|
||||
--awsProxy <HTTPS Proxy>
|
||||
--awsS3sse <AWS SSE>
|
||||
--awsS3ForcePathStyle
|
||||
--awsBucketRootPath <AWS BUCKET ROOT PATH>
|
||||
|
||||
@@ -173,6 +173,10 @@ export function registerCommands(program: Command) {
|
||||
'--awsEndpoint <AWS ENDPOINT>',
|
||||
'Optional AWS endpoint to send requests to.',
|
||||
)
|
||||
.option(
|
||||
'--awsProxy <HTTPS Proxy>',
|
||||
'Optional Proxy to use for AWS requests.',
|
||||
)
|
||||
.option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')
|
||||
.option(
|
||||
'--awsS3ForcePathStyle',
|
||||
|
||||
@@ -94,6 +94,7 @@ export class PublisherConfig {
|
||||
...(opts.awsEndpoint && { endpoint: opts.awsEndpoint }),
|
||||
...(opts.awsS3ForcePathStyle && { s3ForcePathStyle: true }),
|
||||
...(opts.awsS3sse && { sse: opts.awsS3sse }),
|
||||
...(opts.awsProxy && { httpsProxy: opts.awsProxy }),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user