Skip to content

Commit bbdeb06

Browse files
authored
Merge branch 'alpha' into moumouls/upgrade-appollo-server
2 parents cbdd905 + 00f8d4c commit bbdeb06

File tree

8 files changed

+40
-11
lines changed

8 files changed

+40
-11
lines changed

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [8.3.0-alpha.12](https://github.com/parse-community/parse-server/compare/8.3.0-alpha.11...8.3.0-alpha.12) (2025-10-25)
2+
3+
4+
### Features
5+
6+
* Add Parse Server option `verifyServerUrl` to disable server URL verification on server launch ([#9881](https://github.com/parse-community/parse-server/issues/9881)) ([b298ccc](https://github.com/parse-community/parse-server/commit/b298cccd9fb4f664b9d83894faad6d1ea7a3c964))
7+
18
# [8.3.0-alpha.11](https://github.com/parse-community/parse-server/compare/8.3.0-alpha.10...8.3.0-alpha.11) (2025-10-24)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "8.3.0-alpha.11",
3+
"version": "8.3.0-alpha.12",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {

src/Options/Definitions.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ module.exports.ParseServerOptions = {
296296
},
297297
graphQLPath: {
298298
env: 'PARSE_SERVER_GRAPHQL_PATH',
299-
help: 'Mount path for the GraphQL endpoint, defaults to /graphql',
299+
help:
300+
'The mount path for the GraphQL endpoint<br><br>\u26A0\uFE0F File upload inside the GraphQL mutation system requires Parse Server to be able to call itself by making requests to the URL set in `serverURL`.<br><br>Defaults is `/graphql`.',
300301
default: '/graphql',
301302
},
302303
graphQLPublicIntrospection: {
@@ -579,7 +580,8 @@ module.exports.ParseServerOptions = {
579580
},
580581
serverURL: {
581582
env: 'PARSE_SERVER_URL',
582-
help: 'URL to your parse server with http:// or https://.',
583+
help:
584+
'The URL to Parse Server.<br><br>\u26A0\uFE0F Certain server features or adapters may require Parse Server to be able to call itself by making requests to the URL set in `serverURL`. If a feature requires this, it is mentioned in the documentation. In that case ensure that the URL is accessible from the server itself.',
583585
required: true,
584586
},
585587
sessionLength: {
@@ -616,6 +618,13 @@ module.exports.ParseServerOptions = {
616618
help: 'Set the logging to verbose',
617619
action: parsers.booleanParser,
618620
},
621+
verifyServerUrl: {
622+
env: 'PARSE_SERVER_VERIFY_SERVER_URL',
623+
help:
624+
'Parse Server makes a HTTP request to the URL set in `serverURL` at the end of its launch routine to verify that the launch succeeded. If this option is set to `false`, the verification will be skipped. This can be useful in environments where the server URL is not accessible from the server itself, such as when running behind a firewall or in certain containerized environments.<br><br>\u26A0\uFE0F Server URL verification requires Parse Server to be able to call itself by making requests to the URL set in `serverURL`.<br><br>Default is `true`.',
625+
action: parsers.booleanParser,
626+
default: true,
627+
},
619628
verifyUserEmails: {
620629
env: 'PARSE_SERVER_VERIFY_USER_EMAILS',
621630
help:

src/Options/docs.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ export interface ParseServerOptions {
5454
masterKeyTtl: ?number;
5555
/* (Optional) The maintenance key is used for modifying internal and read-only fields of Parse Server.<br><br>⚠️ This key is not intended to be used as part of a regular operation of Parse Server. This key is intended to conduct out-of-band changes such as one-time migrations or data correction tasks. Internal fields are not officially documented and may change at any time without publication in release changelogs. We strongly advice not to rely on internal fields as part of your regular operation and to investigate the implications of any planned changes *directly in the source code* of your current version of Parse Server. */
5656
maintenanceKey: string;
57-
/* URL to your parse server with http:// or https://.
57+
/* The URL to Parse Server.<br><br>⚠️ Certain server features or adapters may require Parse Server to be able to call itself by making requests to the URL set in `serverURL`. If a feature requires this, it is mentioned in the documentation. In that case ensure that the URL is accessible from the server itself.
5858
:ENV: PARSE_SERVER_URL */
5959
serverURL: string;
60+
/* Parse Server makes a HTTP request to the URL set in `serverURL` at the end of its launch routine to verify that the launch succeeded. If this option is set to `false`, the verification will be skipped. This can be useful in environments where the server URL is not accessible from the server itself, such as when running behind a firewall or in certain containerized environments.<br><br>⚠️ Server URL verification requires Parse Server to be able to call itself by making requests to the URL set in `serverURL`.<br><br>Default is `true`.
61+
:DEFAULT: true */
62+
verifyServerUrl: ?boolean;
6063
/* (Optional) Restricts the use of master key permissions to a list of IP addresses or ranges.<br><br>This option accepts a list of single IP addresses, for example `['10.0.0.1', '10.0.0.2']`. You can also use CIDR notation to specify an IP address range, for example `['10.0.1.0/24']`.<br><br><b>Special scenarios:</b><br>- Setting an empty array `[]` means that the master key cannot be used even in Parse Server Cloud Code. This value cannot be set via an environment variable as there is no way to pass an empty array to Parse Server via an environment variable.<br>- Setting `['0.0.0.0/0', '::0']` means to allow any IPv4 and IPv6 address to use the master key and effectively disables the IP filter.<br><br><b>Considerations:</b><br>- IPv4 and IPv6 addresses are not compared against each other. Each IP version (IPv4 and IPv6) needs to be considered separately. For example, `['0.0.0.0/0']` allows any IPv4 address and blocks every IPv6 address. Conversely, `['::0']` allows any IPv6 address and blocks every IPv4 address.<br>- Keep in mind that the IP version in use depends on the network stack of the environment in which Parse Server runs. A local environment may use a different IP version than a remote environment. For example, it's possible that locally the value `['0.0.0.0/0']` allows the request IP because the environment is using IPv4, but when Parse Server is deployed remotely the request IP is blocked because the remote environment is using IPv6.<br>- When setting the option via an environment variable the notation is a comma-separated string, for example `"0.0.0.0/0,::0"`.<br>- IPv6 zone indices (`%` suffix) are not supported, for example `fe80::1%eth0`, `fe80::1%1` or `::1%lo`.<br><br>Defaults to `['127.0.0.1', '::1']` which means that only `localhost`, the server instance on which Parse Server runs, is allowed to use the master key.
6164
:DEFAULT: ["127.0.0.1","::1"] */
6265
masterKeyIps: ?(string[]);
@@ -305,7 +308,7 @@ export interface ParseServerOptions {
305308
:ENV: PARSE_SERVER_MOUNT_GRAPHQL
306309
:DEFAULT: false */
307310
mountGraphQL: ?boolean;
308-
/* Mount path for the GraphQL endpoint, defaults to /graphql
311+
/* The mount path for the GraphQL endpoint<br><br>⚠️ File upload inside the GraphQL mutation system requires Parse Server to be able to call itself by making requests to the URL set in `serverURL`.<br><br>Defaults is `/graphql`.
309312
:ENV: PARSE_SERVER_GRAPHQL_PATH
310313
:DEFAULT: /graphql */
311314
graphQLPath: ?string;

src/ParseServer.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,13 @@ class ParseServer {
296296
* Create an express app for the parse server
297297
* @param {Object} options let you specify the maxUploadSize when creating the express app */
298298
static app(options) {
299-
const { maxUploadSize = '20mb', appId, directAccess, pages, rateLimit = [] } = options;
299+
const {
300+
maxUploadSize = '20mb',
301+
appId,
302+
directAccess,
303+
pages,
304+
rateLimit = [],
305+
} = options;
300306
// This app serves the Parse API directly.
301307
// It's the equivalent of https://api.parse.com/1 in the hosted Parse API.
302308
var api = express();
@@ -481,7 +487,9 @@ class ParseServer {
481487
/* istanbul ignore next */
482488
if (!process.env.TESTING) {
483489
configureListeners(this);
484-
await ParseServer.verifyServerUrl();
490+
if (options.verifyServerUrl !== false) {
491+
await ParseServer.verifyServerUrl();
492+
}
485493
}
486494
this.expressApp = app;
487495
return this;

types/Options/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export interface ParseServerOptions {
122122
allowExpiredAuthDataToken?: boolean;
123123
requestKeywordDenylist?: (RequestKeywordDenylist[]);
124124
rateLimit?: (RateLimitOptions[]);
125+
verifyServerUrl?: boolean;
125126
}
126127
export interface RateLimitOptions {
127128
requestPath: string;

0 commit comments

Comments
 (0)