|
| 1 | +export default { |
| 2 | + "appId": { |
| 3 | + env: "PARSE_SERVER_APPLICATION_ID", |
| 4 | + help: "Your Parse Application ID", |
| 5 | + required: true |
| 6 | + }, |
| 7 | + "masterKey": { |
| 8 | + env: "PARSE_SERVER_MASTER_KEY", |
| 9 | + help: "Your Parse Master Key", |
| 10 | + required: true |
| 11 | + }, |
| 12 | + "port": { |
| 13 | + port: "PORT", |
| 14 | + help: "The port to run the ParseServer. defaults to 1337.", |
| 15 | + default: 1337, |
| 16 | + action: function(opt) { |
| 17 | + opt = parseInt(opt); |
| 18 | + if (!Number.isInteger(opt)) { |
| 19 | + throw new Error("The port is invalid"); |
| 20 | + } |
| 21 | + return opt; |
| 22 | + } |
| 23 | + }, |
| 24 | + "databaseURI": { |
| 25 | + env: "PARSE_SERVER_DATABASE_URI", |
| 26 | + help: "The full URI to your mongodb database" |
| 27 | + }, |
| 28 | + "serverURL": { |
| 29 | + env: "PARSE_SERVER_URL", |
| 30 | + help: "URL to your parse server with http:// or https://.", |
| 31 | + }, |
| 32 | + "clientKey": { |
| 33 | + env: "PARSE_SERVER_CLIENT_KEY", |
| 34 | + help: "Key for iOS, MacOS, tvOS clients" |
| 35 | + }, |
| 36 | + "javascriptKey": { |
| 37 | + env: "PARSE_SERVER_JAVASCRIPT_KEY", |
| 38 | + help: "Key for the Javascript SDK" |
| 39 | + }, |
| 40 | + "restAPIKey": { |
| 41 | + env: "PARSE_SERVER_REST_API_KEY", |
| 42 | + help: "Key for REST calls" |
| 43 | + }, |
| 44 | + "dotNetKey": { |
| 45 | + env: "PARSE_SERVER_DOT_NET_KEY", |
| 46 | + help: "Key for Unity and .Net SDK" |
| 47 | + }, |
| 48 | + "cloud": { |
| 49 | + env: "PARSE_SERVER_CLOUD_CODE_MAIN", |
| 50 | + help: "Full path to your cloud code main.js" |
| 51 | + }, |
| 52 | + "push": { |
| 53 | + env: "PARSE_SERVER_PUSH", |
| 54 | + help: "Configuration for push, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Push", |
| 55 | + action: function(opt) { |
| 56 | + return JSON.parse(opt) |
| 57 | + } |
| 58 | + }, |
| 59 | + "oauth": { |
| 60 | + env: "PARSE_SERVER_OAUTH_PROVIDERS", |
| 61 | + help: "Configuration for your oAuth providers, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth", |
| 62 | + action: function(opt) { |
| 63 | + return JSON.parse(opt) |
| 64 | + } |
| 65 | + }, |
| 66 | + "fileKey": { |
| 67 | + env: "PARSE_SERVER_FILE_KEY", |
| 68 | + help: "Key for your files", |
| 69 | + }, |
| 70 | + "facebookAppIds": { |
| 71 | + env: "PARSE_SERVER_FACEBOOK_APP_IDS", |
| 72 | + help: "Comma separated list for your facebook app Ids", |
| 73 | + type: "list", |
| 74 | + action: function(opt) { |
| 75 | + return opt.split(",") |
| 76 | + } |
| 77 | + }, |
| 78 | + "enableAnonymousUsers": { |
| 79 | + env: "PARSE_SERVER_ENABLE_ANON_USERS", |
| 80 | + help: "Enable (or disable) anon users, defaults to true", |
| 81 | + action: function(opt) { |
| 82 | + if (opt == "true" || opt == "1") { |
| 83 | + return true; |
| 84 | + } |
| 85 | + return false; |
| 86 | + } |
| 87 | + }, |
| 88 | + "mountPath": { |
| 89 | + env: "PARSE_SERVER_MOUNT_PATH", |
| 90 | + help: "Mount path for the server, defaults to /parse", |
| 91 | + default: "/parse" |
| 92 | + }, |
| 93 | + "databaseAdapter": { |
| 94 | + env: "PARSE_SERVER_DATABASE_ADAPTER", |
| 95 | + help: "Adapter module for the database sub-system" |
| 96 | + }, |
| 97 | + "filesAdapter": { |
| 98 | + env: "PARSE_SERVER_FILES_ADAPTER", |
| 99 | + help: "Adapter module for the files sub-system" |
| 100 | + }, |
| 101 | + "loggerAdapter": { |
| 102 | + env: "PARSE_SERVER_LOGGER_ADAPTER", |
| 103 | + help: "Adapter module for the logging sub-system" |
| 104 | + }, |
| 105 | + "maxUploadSize": { |
| 106 | + env: "PARSE_SERVER_MAX_UPLOAD_SIZE", |
| 107 | + help: "Max file size for uploads.", |
| 108 | + default: "20mb" |
| 109 | + } |
| 110 | +}; |
0 commit comments