mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
namespace Squidex.Infrastructure.Assets
|
|
{
|
|
public sealed class AmazonS3AssetStoreFixture
|
|
{
|
|
public AmazonS3AssetStore AssetStore { get; }
|
|
|
|
public AmazonS3AssetStoreFixture()
|
|
{
|
|
// From: https://console.aws.amazon.com/iam/home?region=eu-central-1#/users/s3?section=security_credentials
|
|
AssetStore = new AmazonS3AssetStore(new AmazonS3Options
|
|
{
|
|
AccessKey = "key",
|
|
Bucket = "squidex-test",
|
|
BucketFolder = "squidex-assets",
|
|
ForcePathStyle = false,
|
|
RegionName = "eu-central-1",
|
|
SecretKey = "secret",
|
|
ServiceUrl = null
|
|
});
|
|
AssetStore.InitializeAsync().Wait();
|
|
}
|
|
}
|
|
}
|
|
|