Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ mbtiles-extractor --input=some.mbtiles --outputType=local --localOutDir=Data --t

`--force=false` Force replace any existing files without asking.

An optional `AWS_S3_ENDPOINT` environment variable may be provided, which is mainly used for S3 compatiable services. eg. `export AWS_S3_ENDPOINT=https://sgp1.digitaloceanspaces.com` if using Digital Ocean Spaces.

#### Local storage options

`--localOutDir` **Required** The name of a folder to place the tiles in.
Expand Down
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ export async function cli () {
agent: defaultAgent
}
}
if (process.env.AWS_S3_ENDPOINT) {
awsOptions.endpoint = new AWS.Endpoint(process.env.AWS_S3_ENDPOINT)
}
if (options.awsProfile) {
const profile = await adoptProfile()
Object.assign(awsOptions, profile);
Expand Down