Skip to content

Commit 3ca1e9f

Browse files
committed
Adds maxUploadSize
1 parent 81f5c68 commit 3ca1e9f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can configure Parse Server with a configuration file, arguments and environm
4949

5050
To start the server:
5151

52-
`npm start -- --appId MYAPP --masterKey MASTER_KEY`.
52+
`npm start -- --appId MYAPP --masterKey MASTER_KEY --serverURL http://localhost:1337/parse`.
5353

5454
To get more help for running the parse-server standalone, you can run:
5555

@@ -113,6 +113,7 @@ The client keys used with Parse are no longer necessary with Parse Server. If yo
113113
* `loggerAdapter` - The default behavior/transport (File) can be changed by creating an adapter class (see [`LoggerAdapter.js`](https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Logger/LoggerAdapter.js))
114114
* `enableAnonymousUsers` - Defaults to true. Set to false to disable anonymous users.
115115
* `oauth` - Used to configure support for [3rd party authentication](https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#oauth).
116+
* `maxUploadSize` - Defaults to 20mb. Max file size for uploads
116117

117118
#### Using environment variables
118119

@@ -131,6 +132,7 @@ PARSE_SERVER_JAVASCRIPT_KEY
131132
PARSE_SERVER_DOTNET_KEY
132133
PARSE_SERVER_FILE_KEY
133134
PARSE_SERVER_FACEBOOK_APP_IDS // string of comma separated list
135+
PARSE_SERVER_MAX_UPLOAD_SIZE
134136

135137
```
136138

src/cli/cli-definitions.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,10 @@ module.exports = {
9090
"loggerAdapter": {
9191
env: "PARSE_SERVER_LOGGER_ADAPTER",
9292
help: "Adapter module for the logging sub-system"
93+
},
94+
"maxUploadSize": {
95+
env: "PARSE_SERVER_MAX_UPLOAD_SIZE",
96+
help: "Max file size for uploads.",
97+
default: "20mb"
9398
}
9499
};

0 commit comments

Comments
 (0)