s3-autoindex
Version:
Serve the contents of a S3 bucket (private or public) over HTTP
25 lines (24 loc) • 560 B
TypeScript
/// <reference types="node" />
import * as https from 'https';
export interface S3 {
Bucket: string;
UseMetaMtime: boolean;
Concurrent: number;
}
export interface AWSConfig {
accessKeyId: string;
secretAccessKey: string;
endpoint: string;
sslEnabled: boolean;
s3ForcePathStyle: boolean;
}
export interface Config {
version: string;
basepath: string;
port: number;
https?: https.ServerOptions;
s3: S3;
aws: AWSConfig;
aws_module: string;
}
export default function parseConfig(argv: string[]): Config;