I've set up of Parse-Server with mongodb on same instance, in amazon, EC2.
I can't get acess to parse-dashboard because I didn't install SSL certificate, so I used nginx + Let's Encrypt to solve this.
But now when I try to acess parse-server I get:
Cannot Get login
How to solve this ? Here is my dashboard config:
{
"apps": [
{
"serverURL": "http://mysvrurl/parse",
"appId": "myappid",
"masterKey": "mykey",
"appName": "appname"
}
],
"users": [
{
"user":"user",
"pass":"p@ssw0rd"
}
My index.js:
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'myappid',
masterKey: process.env.MASTER_KEY || 'mykey', //Ad$
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse',$
liveQuery: {
classNames: ["Posts", "Comments"] // List of classes to support f$
}
});
before i get all technical, may i know a few information about your server?
If possible, paste your index.js here and i can help you take a look at it.
Edit:
var allowInsecureHTTP = true;
var parseDashboardSettings = {
"apps": [{
"serverURL": process.env.SERVER_URL || 'http://localhost:1337/parse',
"appId": process.env.APP_ID || '***',
//"restAPIKey": process.env.RESTAPI_KEY || "***",
"masterKey": process.env.MASTER_KEY || '***',
"appName": process.env.APP_NAME || "***"
}],
"users": [{
"user": "administrator", //REPLACE WITH YOURS
"pass": "password", //REPLACE WITH YOURS
"masterKey": process.env.MASTER_KEY || '****',
"apps": [{
"appId": process.env.APP_ID || '****'
}]
}]
}
var dashboard = new ParseDashboard(parseDashboardSettings, allowInsecureHTTP);
app.use('/dashboard', dashboard);
I had the same issue, try doing the following steps In chrome open Settings --> Go to Site settings -->Click on Insecure Content --> Click on "Add" button corresponding to "Allow" copy and paste your Public IPv4 DNS in the address box it worked for me