You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli/cli-definitions.js
+82-25
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
exportdefault{
2
-
"appId": {
2
+
"appId": {
3
3
env: "PARSE_SERVER_APPLICATION_ID",
4
4
help: "Your Parse Application ID",
5
5
required: true
6
6
},
7
-
"masterKey": {
7
+
"masterKey": {
8
8
env: "PARSE_SERVER_MASTER_KEY",
9
9
help: "Your Parse Master Key",
10
10
required: true
@@ -21,53 +21,63 @@ export default {
21
21
returnopt;
22
22
}
23
23
},
24
-
"databaseURI": {
24
+
"databaseURI": {
25
25
env: "PARSE_SERVER_DATABASE_URI",
26
26
help: "The full URI to your mongodb database"
27
27
},
28
-
"serverURL": {
28
+
"serverURL": {
29
29
env: "PARSE_SERVER_URL",
30
30
help: "URL to your parse server with http:// or https://.",
31
31
},
32
-
"clientKey": {
32
+
"publicServerURL": {
33
+
env: "PARSE_PUBLIC_SERVER_URL",
34
+
help: "Public URL to your parse server with http:// or https://.",
35
+
},
36
+
"clientKey": {
33
37
env: "PARSE_SERVER_CLIENT_KEY",
34
38
help: "Key for iOS, MacOS, tvOS clients"
35
39
},
36
-
"javascriptKey": {
40
+
"javascriptKey": {
37
41
env: "PARSE_SERVER_JAVASCRIPT_KEY",
38
42
help: "Key for the Javascript SDK"
39
-
},
40
-
"restAPIKey": {
43
+
},
44
+
"restAPIKey": {
41
45
env: "PARSE_SERVER_REST_API_KEY",
42
46
help: "Key for REST calls"
43
-
},
44
-
"dotNetKey": {
47
+
},
48
+
"dotNetKey": {
45
49
env: "PARSE_SERVER_DOT_NET_KEY",
46
50
help: "Key for Unity and .Net SDK"
47
-
},
48
-
"cloud": {
51
+
},
52
+
"cloud": {
49
53
env: "PARSE_SERVER_CLOUD_CODE_MAIN",
50
54
help: "Full path to your cloud code main.js"
51
-
},
55
+
},
52
56
"push": {
53
57
env: "PARSE_SERVER_PUSH",
54
58
help: "Configuration for push, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Push",
55
59
action: function(opt){
60
+
if(typeofopt=='object'){
61
+
returnopt;
62
+
}
56
63
returnJSON.parse(opt)
57
64
}
58
65
},
59
-
"oauth": {
66
+
"oauth": {
60
67
env: "PARSE_SERVER_OAUTH_PROVIDERS",
61
68
help: "Configuration for your oAuth providers, as stringified JSON. See https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth",
62
69
action: function(opt){
70
+
if(typeofopt=='object'){
71
+
returnopt;
72
+
}
63
73
returnJSON.parse(opt)
64
74
}
65
75
},
66
-
"fileKey": {
76
+
"fileKey": {
67
77
env: "PARSE_SERVER_FILE_KEY",
68
78
help: "Key for your files",
69
-
},
70
-
"facebookAppIds": {
79
+
},
80
+
"facebookAppIds": {
71
81
env: "PARSE_SERVER_FACEBOOK_APP_IDS",
72
82
help: "Comma separated list for your facebook app Ids",
73
83
type: "list",
@@ -81,7 +91,7 @@ export default {
81
91
action: function(opt){
82
92
if(opt=="true"||opt=="1"){
83
93
returntrue;
84
-
}
94
+
}
85
95
returnfalse;
86
96
}
87
97
},
@@ -95,22 +105,69 @@ export default {
95
105
returnfalse;
96
106
}
97
107
},
98
-
"mountPath": {
108
+
"mountPath": {
99
109
env: "PARSE_SERVER_MOUNT_PATH",
100
110
help: "Mount path for the server, defaults to /parse",
101
111
default: "/parse"
102
112
},
103
-
"databaseAdapter": {
104
-
env: "PARSE_SERVER_DATABASE_ADAPTER",
105
-
help: "Adapter module for the database sub-system"
106
-
},
107
113
"filesAdapter": {
108
114
env: "PARSE_SERVER_FILES_ADAPTER",
109
-
help: "Adapter module for the files sub-system"
115
+
help: "Adapter module for the files sub-system",
116
+
action: functionaction(opt){
117
+
if(typeofopt=='object'){
118
+
returnopt;
119
+
}
120
+
try{
121
+
returnJSON.parse(opt);
122
+
}catch(e){}
123
+
returnopt;
124
+
}
125
+
},
126
+
"emailAdapter": {
127
+
env: "PARSE_SERVER_EMAIL_ADAPTER",
128
+
help: "Adapter module for the email sending",
129
+
action: functionaction(opt){
130
+
if(typeofopt=='object'){
131
+
returnopt;
132
+
}
133
+
try{
134
+
returnJSON.parse(opt);
135
+
}catch(e){}
136
+
returnopt;
137
+
}
110
138
},
111
139
"loggerAdapter": {
112
140
env: "PARSE_SERVER_LOGGER_ADAPTER",
113
-
help: "Adapter module for the logging sub-system"
141
+
help: "Adapter module for the logging sub-system",
142
+
action: functionaction(opt){
143
+
if(typeofopt=='object'){
144
+
returnopt;
145
+
}
146
+
try{
147
+
returnJSON.parse(opt);
148
+
}catch(e){}
149
+
returnopt;
150
+
}
151
+
},
152
+
"liveQuery": {
153
+
env: "PARSE_SERVER_LIVE_QUERY_OPTIONS",
154
+
help: "liveQuery options",
155
+
action: functionaction(opt){
156
+
if(typeofopt=='object'){
157
+
returnopt;
158
+
}
159
+
returnJSON.parse(opt);
160
+
}
161
+
},
162
+
"customPages": {
163
+
env: "PARSE_SERVER_CUSTOM_PAGES",
164
+
help: "custom pages for pasword validation and reset",
0 commit comments