First Commit of registry itself
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Fabian Stamm
2020-07-28 14:39:54 +02:00
parent 34e482615d
commit 6fc258cf3a
18 changed files with 443 additions and 0 deletions

16
registry/src/s3.ts Normal file
View File

@ -0,0 +1,16 @@
import { S3 } from "./deps.ts";
import config from "./config.ts";
if (!config.s3) {
throw new Error("Config is missing [s3] section!");
}
const bucket = new S3.S3Bucket({
bucket: config.s3.bucket || "deno-registry",
endpointURL: config.s3.endpoint,
accessKeyID: config.s3.accessKey,
secretKey: config.s3.secretKey,
region: config?.s3?.region || "us-east-1",
});
export default bucket;