-
Notifications
You must be signed in to change notification settings - Fork 55
/
config.example.js
47 lines (41 loc) · 1.4 KB
/
config.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var FileAdapter = require('parse-server-fs-adapter');
var S3Adapter = require('parse-server-s3-adapter');
var GCSAdapter = require('parse-server-gcs-adapter');
module.exports = {
applicationId: "PARSE_APPLICATION_ID",
masterKey: "PARSE_MASTER_KEY",
mongoURL: "mongodb://<username>:<password>@mongourl.com:27017/database_name",
serverURL: "https://api.customparseserver.com/parse",
filesToTransfer: 'parseOnly',
renameInDatabase: false,
transferTo: 'filesystem',
// For filesystem configuration
filesystemPath: './downloaded_files',
// For S3 configuration
aws_accessKeyId: "ACCESS_KEY_ID",
aws_secretAccessKey: "SECRET_ACCESS_KEY",
aws_bucket: "BUCKET_NAME",
aws_bucketPrefix: "",
// For GCS configuration
gcs_projectId: "GCS_PROJECT_ID",
gcs_keyFilename: "credentials.json",
gcs_bucket: "BUCKET_NAME",
// For Azure configuration
azure_account: "STORAGE_ACCOUNT_NAME",
azure_container: "BLOB_CONTAINER",
azure_accessKey: "ACCESS_KEY",
// Or set filesAdapter to a Parse Server file adapter
// filesAdapter: new FileAdapter({
// filesSubDirectory: './downloaded_files'
// }),
// filesAdapter: new S3Adapter({
// accessKey: 'ACCESS_KEY_ID',
// secretKey: 'SECRET_ACCESS_KEY',
// bucket: 'BUCKET_NAME'
// }),
// filesAdapter: new GCSAdapter({
// projectId: "GCS_PROJECT_ID",
// keyFilename: "credentials.json",
// bucket: "BUCKET_NAME",
// }),
};