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?
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.
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.
Follow these steps to get parse dashboard running and accessible over public ip:
{
"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"
}
]
}
parse-dashboard --config <your-config-filename>.json --allowInsecureHTTP true
Enjoy!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With