Merge pull request #1305 from ParsePlatform/flovilmart.emailAdapterConfig
Adds more options when using CLI/config
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
export default {
|
export default {
|
||||||
"appId": {
|
"appId": {
|
||||||
env: "PARSE_SERVER_APPLICATION_ID",
|
env: "PARSE_SERVER_APPLICATION_ID",
|
||||||
help: "Your Parse Application ID",
|
help: "Your Parse Application ID",
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
"masterKey": {
|
"masterKey": {
|
||||||
env: "PARSE_SERVER_MASTER_KEY",
|
env: "PARSE_SERVER_MASTER_KEY",
|
||||||
help: "Your Parse Master Key",
|
help: "Your Parse Master Key",
|
||||||
required: true
|
required: true
|
||||||
@@ -21,53 +21,63 @@ export default {
|
|||||||
return opt;
|
return opt;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"databaseURI": {
|
"databaseURI": {
|
||||||
env: "PARSE_SERVER_DATABASE_URI",
|
env: "PARSE_SERVER_DATABASE_URI",
|
||||||
help: "The full URI to your mongodb database"
|
help: "The full URI to your mongodb database"
|
||||||
},
|
},
|
||||||
"serverURL": {
|
"serverURL": {
|
||||||
env: "PARSE_SERVER_URL",
|
env: "PARSE_SERVER_URL",
|
||||||
help: "URL to your parse server with http:// or https://.",
|
help: "URL to your parse server with http:// or https://.",
|
||||||
},
|
},
|
||||||
"clientKey": {
|
"publicServerURL": {
|
||||||
|
env: "PARSE_PUBLIC_SERVER_URL",
|
||||||
|
help: "Public URL to your parse server with http:// or https://.",
|
||||||
|
},
|
||||||
|
"clientKey": {
|
||||||
env: "PARSE_SERVER_CLIENT_KEY",
|
env: "PARSE_SERVER_CLIENT_KEY",
|
||||||
help: "Key for iOS, MacOS, tvOS clients"
|
help: "Key for iOS, MacOS, tvOS clients"
|
||||||
},
|
},
|
||||||
"javascriptKey": {
|
"javascriptKey": {
|
||||||
env: "PARSE_SERVER_JAVASCRIPT_KEY",
|
env: "PARSE_SERVER_JAVASCRIPT_KEY",
|
||||||
help: "Key for the Javascript SDK"
|
help: "Key for the Javascript SDK"
|
||||||
},
|
},
|
||||||
"restAPIKey": {
|
"restAPIKey": {
|
||||||
env: "PARSE_SERVER_REST_API_KEY",
|
env: "PARSE_SERVER_REST_API_KEY",
|
||||||
help: "Key for REST calls"
|
help: "Key for REST calls"
|
||||||
},
|
},
|
||||||
"dotNetKey": {
|
"dotNetKey": {
|
||||||
env: "PARSE_SERVER_DOT_NET_KEY",
|
env: "PARSE_SERVER_DOT_NET_KEY",
|
||||||
help: "Key for Unity and .Net SDK"
|
help: "Key for Unity and .Net SDK"
|
||||||
},
|
},
|
||||||
"cloud": {
|
"cloud": {
|
||||||
env: "PARSE_SERVER_CLOUD_CODE_MAIN",
|
env: "PARSE_SERVER_CLOUD_CODE_MAIN",
|
||||||
help: "Full path to your cloud code main.js"
|
help: "Full path to your cloud code main.js"
|
||||||
},
|
},
|
||||||
"push": {
|
"push": {
|
||||||
env: "PARSE_SERVER_PUSH",
|
env: "PARSE_SERVER_PUSH",
|
||||||
help: "Configuration for push, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Push",
|
help: "Configuration for push, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Push",
|
||||||
action: function(opt) {
|
action: function(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
return JSON.parse(opt)
|
return JSON.parse(opt)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oauth": {
|
"oauth": {
|
||||||
env: "PARSE_SERVER_OAUTH_PROVIDERS",
|
env: "PARSE_SERVER_OAUTH_PROVIDERS",
|
||||||
help: "Configuration for your oAuth providers, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth",
|
help: "Configuration for your oAuth providers, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth",
|
||||||
action: function(opt) {
|
action: function(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
return JSON.parse(opt)
|
return JSON.parse(opt)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fileKey": {
|
"fileKey": {
|
||||||
env: "PARSE_SERVER_FILE_KEY",
|
env: "PARSE_SERVER_FILE_KEY",
|
||||||
help: "Key for your files",
|
help: "Key for your files",
|
||||||
},
|
},
|
||||||
"facebookAppIds": {
|
"facebookAppIds": {
|
||||||
env: "PARSE_SERVER_FACEBOOK_APP_IDS",
|
env: "PARSE_SERVER_FACEBOOK_APP_IDS",
|
||||||
help: "Comma separated list for your facebook app Ids",
|
help: "Comma separated list for your facebook app Ids",
|
||||||
type: "list",
|
type: "list",
|
||||||
@@ -81,7 +91,7 @@ export default {
|
|||||||
action: function(opt) {
|
action: function(opt) {
|
||||||
if (opt == "true" || opt == "1") {
|
if (opt == "true" || opt == "1") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -95,22 +105,69 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mountPath": {
|
"mountPath": {
|
||||||
env: "PARSE_SERVER_MOUNT_PATH",
|
env: "PARSE_SERVER_MOUNT_PATH",
|
||||||
help: "Mount path for the server, defaults to /parse",
|
help: "Mount path for the server, defaults to /parse",
|
||||||
default: "/parse"
|
default: "/parse"
|
||||||
},
|
},
|
||||||
"databaseAdapter": {
|
|
||||||
env: "PARSE_SERVER_DATABASE_ADAPTER",
|
|
||||||
help: "Adapter module for the database sub-system"
|
|
||||||
},
|
|
||||||
"filesAdapter": {
|
"filesAdapter": {
|
||||||
env: "PARSE_SERVER_FILES_ADAPTER",
|
env: "PARSE_SERVER_FILES_ADAPTER",
|
||||||
help: "Adapter module for the files sub-system"
|
help: "Adapter module for the files sub-system",
|
||||||
|
action: function action(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
return JSON.parse(opt);
|
||||||
|
} catch(e) {}
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"emailAdapter": {
|
||||||
|
env: "PARSE_SERVER_EMAIL_ADAPTER",
|
||||||
|
help: "Adapter module for the email sending",
|
||||||
|
action: function action(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
return JSON.parse(opt);
|
||||||
|
} catch(e) {}
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"loggerAdapter": {
|
"loggerAdapter": {
|
||||||
env: "PARSE_SERVER_LOGGER_ADAPTER",
|
env: "PARSE_SERVER_LOGGER_ADAPTER",
|
||||||
help: "Adapter module for the logging sub-system"
|
help: "Adapter module for the logging sub-system",
|
||||||
|
action: function action(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
return JSON.parse(opt);
|
||||||
|
} catch(e) {}
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"liveQuery": {
|
||||||
|
env: "PARSE_SERVER_LIVE_QUERY_OPTIONS",
|
||||||
|
help: "liveQuery options",
|
||||||
|
action: function action(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
return JSON.parse(opt);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"customPages": {
|
||||||
|
env: "PARSE_SERVER_CUSTOM_PAGES",
|
||||||
|
help: "custom pages for pasword validation and reset",
|
||||||
|
action: function action(opt) {
|
||||||
|
if (typeof opt == 'object') {
|
||||||
|
return opt;
|
||||||
|
}
|
||||||
|
return JSON.parse(opt);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"maxUploadSize": {
|
"maxUploadSize": {
|
||||||
env: "PARSE_SERVER_MAX_UPLOAD_SIZE",
|
env: "PARSE_SERVER_MAX_UPLOAD_SIZE",
|
||||||
|
|||||||
Reference in New Issue
Block a user