Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse Dashboard can only be remotely accessed via HTTPS

I'm trying to deploy a Parse Server and Parse Dashboard on my DigitalOcean's server. I installed through docker-compose on this git: https://github.com/yongjhih/docker-parse-server

When I access to it, http://rafael-ruiz.es:4040 it says:

Parse Dashboard can only be remotely accessed via HTTPS

so these are my solutions:

1.- According to Parse (https://github.com/ParsePlatform/parse-dashboard)

Deploying in production

If you're deploying to a provider like Heroku, or Google App Engine, the SSL endpoint is terminated early and handled by the provider and you may encounter this error: Parse Dashboard can only be remotely accessed via HTTPS.

Before going further, make sure your server cannot be reachable via HTTP. See the provider documentation for force HTTPS connections to your deployment.

Set the environment variable PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 to tell parse server to skip the secure tests.

so I set my environment variable to 1. But nothing happend.

2.- I have ALREADY https enabled (try https://rafael-ruiz.es). But when I try: https://rafael-ruiz.es:4040 it doesn't work.

What's wrong with this?

Thanks.


QUESTION:

Can it be because I have to configure some ports with my SSL certificate?

like image 756
Rafael Ruiz Muñoz Avatar asked Mar 11 '16 21:03

Rafael Ruiz Muñoz


People also ask

How do I access my dashboard parse?

Getting Started. Install the dashboard from npm . You may set the host, port and mount path by supplying the --host , --port and --mountPath options to parse-dashboard. You can use anything you want as the app name, or leave it out in which case the app ID will be used.

What is parse dashboard?

Parse Dashboard is a standalone dashboard for managing your Parse apps. You can use it to manage your Parse Server apps. Overview of Parse Dashboard. Trademarks: This software listing is packaged by Bitnami.


2 Answers

Follow these steps to get parse dashboard running and accessible over public ip:

  1. Create a config file your-config-filename.json
  2. Add the following json structure to it and don't forget to replace with your app values:

{
  "apps": [
    {
      "serverURL": "https://api.parse.com/1",
      "appId": "myAppId",
      "masterKey": "myMasterKey",
      "javascriptKey": "myJavascriptKey",
      "restKey": "myRestKey",
      "appName": "My Parse.Com App"
    },
    {
      "serverURL": "http://localhost:1337/parse",
      "appId": "myAppId",
      "masterKey": "myMasterKey",
      "appName": "My Parse Server App"
    }
  ],
"users": [
    {
      "user":"user1",
      "pass":"pass"
    },
    {
      "user":"user2",
      "pass":"pass"
    }
  ]
}
  1. Save the config file and run the following command:

parse-dashboard --config <your-config-filename>.json --allowInsecureHTTP true

Enjoy!

like image 142
Arjun Shukla Avatar answered Nov 15 '22 19:11

Arjun Shukla


The change is

app.use('/parse-dashboard', new ParseDashboard(config.dashboard, { allowInsecureHTTP: true }));

instead of

app.use('/parse-dashboard', ParseDashboard(config.dashboard, true));

you will find this code in index.js

like image 36
Manoj Singh Avatar answered Nov 15 '22 20:11

Manoj Singh