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:
Jos Craw
2023-02-22 21:52:03 +13:00
parent 522ca3c8d2
commit ea2bbef1b1
7 changed files with 29 additions and 1 deletions
@@ -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 }),
},
};
}