Browse Source

feat: generic S3 module

pull/2012/head
NGPixel 4 years ago
parent
commit
e45145986a
2 changed files with 42 additions and 0 deletions
  1. 39
      server/modules/storage/s3generic/definition.yml
  2. 3
      server/modules/storage/s3generic/storage.js

39
server/modules/storage/s3generic/definition.yml

@ -0,0 +1,39 @@
key: s3generic
title: S3 Generic
description: Generic storage module for S3-compatible services.
author: requarks.io
logo: https://static.requarks.io/logo/aws-s3-alt.svg
website: https://wiki.js.org
isAvailable: true
supportedModes:
- push
defaultMode: push
schedule: false
props:
endpoint:
type: String
title: Endpoint URI
hint: The full S3-compliant endpoint URI.
default: https://service.region.example.com
order: 1
bucket:
type: String
title: Unique bucket name
hint: The unique bucket name to create (e.g. wiki-johndoe)
order: 2
accessKeyId:
type: String
title: Access Key ID
hint: The Access Key ID.
order: 3
secretAccessKey :
type: String
title: Access Key Secret
hint: The Access Key Secret for the Access Key ID above.
sensitive: true
order: 4
actions:
- handler: exportAll
label: Export All
hint: Output all content from the DB to the external service, overwriting any existing data. If you enabled this module after content was created or you temporarily disabled it, you'll want to execute this action to add the missing content.

3
server/modules/storage/s3generic/storage.js

@ -0,0 +1,3 @@
const S3CompatibleStorage = require('../s3/common')
module.exports = new S3CompatibleStorage('S3Generic')
Loading…
Cancel
Save