如何代理我的S3流量?

Jayanth苏雷什
2023-01-22 11:07

当访问S3云提供商时,如果您想通过代理重定向流量,可以将以下参数添加到Artifactory binarstore .xml文件中:

proxyHost:代理服务器的主机名或IP地址
proxyPort:代理服务器端口号
proxyIdentity:连接代理服务器的用户名
proxyCredential:连接代理服务器的密码

在实践中,它看起来类似于下面的例子:

<配置version = " 2 " >
<链模板= " google-storage-v2 " / >

< bucketName >我的桶< / bucketName >
<路径> myPath > < /路径
< rootFoldersNameLength > 3 < / rootFoldersNameLength >
假< / useInstanceCredentials < useInstanceCredentials > >
10 < signatureExpirySeconds > < / signatureExpirySeconds >
< proxyHost > 127.0.0.1 < / proxyHost >
8888年< proxyPort > < / proxyPort >
< proxyIdentity >用户名< / proxyIdentity >
< proxyCredential > < / proxyCredential密码>
50 < maxConnections > < / maxConnections >
120000年< connectionTimeout > < / connectionTimeout >
> < /供应商
< / config >