1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

Use US standard S3 region

This commit is contained in:
Eelco Dolstra 2016-02-26 20:57:47 +01:00
parent c635f5d0ea
commit 53ca41ef9f

View file

@ -44,7 +44,7 @@ S3BinaryCacheStore::S3BinaryCacheStore(std::shared_ptr<Store> localStore,
ref<Aws::Client::ClientConfiguration> S3BinaryCacheStore::makeConfig() ref<Aws::Client::ClientConfiguration> S3BinaryCacheStore::makeConfig()
{ {
auto res = make_ref<Aws::Client::ClientConfiguration>(); auto res = make_ref<Aws::Client::ClientConfiguration>();
res->region = Aws::Region::EU_WEST_1; res->region = Aws::Region::US_EAST_1;
res->requestTimeoutMs = 600 * 1000; res->requestTimeoutMs = 600 * 1000;
return res; return res;
} }
@ -66,8 +66,8 @@ void S3BinaryCacheStore::init()
.WithBucket(bucketName) .WithBucket(bucketName)
.WithCreateBucketConfiguration( .WithCreateBucketConfiguration(
Aws::S3::Model::CreateBucketConfiguration() Aws::S3::Model::CreateBucketConfiguration()
.WithLocationConstraint( /* .WithLocationConstraint(
Aws::S3::Model::BucketLocationConstraint::eu_west_1)))); Aws::S3::Model::BucketLocationConstraint::US) */ )));
} }
BinaryCacheStore::init(); BinaryCacheStore::init();