Skip to content

Enable JavaScript syntax highlighting in README #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Managing multiple apps from the same dashboard is also possible. Simply add add

You can manage self-hosted [Parse Server](https://github.com/ParsePlatform/parse-server) apps, *and* apps that are hosted on [Parse.com](http://parse.com/) from the same dashboard. In your config file, you will need to add the `restKey` and `javascriptKey` as well as the other paramaters, which you can find on `dashboard.parse.com`. Set the serverURL to `http://api.parse.com/1`:

```js
```json
{
"apps": [
{
Expand Down Expand Up @@ -153,7 +153,7 @@ To change the app to production, simply set `production` to `true` in your confi

Instead of starting Parse Dashboard with the CLI, you can also run it as an [express](https://github.com/expressjs/express) middleware.

```
```javascript
var express = require('express');
var ParseDashboard = require('parse-dashboard');

Expand All @@ -179,7 +179,7 @@ httpServer.listen(4040);

If you want to run both [Parse Server](https://github.com/ParsePlatform/parse-server) and Parse Dashboard on the same server/port, you can run them both as express middleware:

```
```javascript
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var ParseDashboard = require('parse-dashboard');
Expand Down Expand Up @@ -217,7 +217,7 @@ In order to securely deploy the dashboard without leaking your apps master key,

The deployed dashboard detects if you are using a secure connection. If you are deploying the dashboard behind a load balancer or front-facing proxy, then the app won't be able to detect that the connection is secure. In this case, you can start the dashboard with the `--trustProxy=1` option (or set the PARSE_DASHBOARD_TRUST_PROXY config var to 1) to rely on the X-Forwarded-* headers for the client's connection security. This is useful for hosting on services like Heroku, where you can trust the provided proxy headers to correctly determine whether you're using HTTP or HTTPS. You can also turn on this setting when using the dashboard as [express](https://github.com/expressjs/express) middleware:

```
```javascript
var trustProxy = true;
var dashboard = new ParseDashboard({
"apps": [
Expand Down Expand Up @@ -302,7 +302,7 @@ Start your `parse-server` with

Then in your dashboard configuration:

```
```javascript
var trustProxy = true;
var dashboard = new ParseDashboard({
"apps": [
Expand Down