111 lines
2.9 KiB
JavaScript
111 lines
2.9 KiB
JavaScript
export default {
|
|
"appId": {
|
|
env: "PARSE_SERVER_APPLICATION_ID",
|
|
help: "Your Parse Application ID",
|
|
required: true
|
|
},
|
|
"masterKey": {
|
|
env: "PARSE_SERVER_MASTER_KEY",
|
|
help: "Your Parse Master Key",
|
|
required: true
|
|
},
|
|
"port": {
|
|
port: "PORT",
|
|
help: "The port to run the ParseServer. defaults to 1337.",
|
|
default: 1337,
|
|
action: function(opt) {
|
|
opt = parseInt(opt);
|
|
if (!Number.isInteger(opt)) {
|
|
throw new Error("The port is invalid");
|
|
}
|
|
return opt;
|
|
}
|
|
},
|
|
"databaseURI": {
|
|
env: "PARSE_SERVER_DATABASE_URI",
|
|
help: "The full URI to your mongodb database"
|
|
},
|
|
"serverURL": {
|
|
env: "PARSE_SERVER_URL",
|
|
help: "URL to your parse server with http:// or https://.",
|
|
},
|
|
"clientKey": {
|
|
env: "PARSE_SERVER_CLIENT_KEY",
|
|
help: "Key for iOS, MacOS, tvOS clients"
|
|
},
|
|
"javascriptKey": {
|
|
env: "PARSE_SERVER_JAVASCRIPT_KEY",
|
|
help: "Key for the Javascript SDK"
|
|
},
|
|
"restAPIKey": {
|
|
env: "PARSE_SERVER_REST_API_KEY",
|
|
help: "Key for REST calls"
|
|
},
|
|
"dotNetKey": {
|
|
env: "PARSE_SERVER_DOT_NET_KEY",
|
|
help: "Key for Unity and .Net SDK"
|
|
},
|
|
"cloud": {
|
|
env: "PARSE_SERVER_CLOUD_CODE_MAIN",
|
|
help: "Full path to your cloud code main.js"
|
|
},
|
|
"push": {
|
|
env: "PARSE_SERVER_PUSH",
|
|
help: "Configuration for push, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Push",
|
|
action: function(opt) {
|
|
return JSON.parse(opt)
|
|
}
|
|
},
|
|
"oauth": {
|
|
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",
|
|
action: function(opt) {
|
|
return JSON.parse(opt)
|
|
}
|
|
},
|
|
"fileKey": {
|
|
env: "PARSE_SERVER_FILE_KEY",
|
|
help: "Key for your files",
|
|
},
|
|
"facebookAppIds": {
|
|
env: "PARSE_SERVER_FACEBOOK_APP_IDS",
|
|
help: "Comma separated list for your facebook app Ids",
|
|
type: "list",
|
|
action: function(opt) {
|
|
return opt.split(",")
|
|
}
|
|
},
|
|
"enableAnonymousUsers": {
|
|
env: "PARSE_SERVER_ENABLE_ANON_USERS",
|
|
help: "Enable (or disable) anon users, defaults to true",
|
|
action: function(opt) {
|
|
if (opt == "true" || opt == "1") {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
},
|
|
"mountPath": {
|
|
env: "PARSE_SERVER_MOUNT_PATH",
|
|
help: "Mount path for the server, defaults to /parse",
|
|
default: "/parse"
|
|
},
|
|
"databaseAdapter": {
|
|
env: "PARSE_SERVER_DATABASE_ADAPTER",
|
|
help: "Adapter module for the database sub-system"
|
|
},
|
|
"filesAdapter": {
|
|
env: "PARSE_SERVER_FILES_ADAPTER",
|
|
help: "Adapter module for the files sub-system"
|
|
},
|
|
"loggerAdapter": {
|
|
env: "PARSE_SERVER_LOGGER_ADAPTER",
|
|
help: "Adapter module for the logging sub-system"
|
|
},
|
|
"maxUploadSize": {
|
|
env: "PARSE_SERVER_MAX_UPLOAD_SIZE",
|
|
help: "Max file size for uploads.",
|
|
default: "20mb"
|
|
}
|
|
};
|