解析服务器仪表板登录 [英] Parse server dashboard login

查看:119
本文介绍了解析服务器仪表板登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我是Android Studio的新手.我正在一步一步地学习在线课程. 我在AWS上使用ParseServer.我设法获取了appId等,并且可以直接从浏览器连接Java SSH客户端.我的应用程序可以在ParseServer中成功存储信息,但是我无法访问解析仪表板.当我尝试输入时,要求我输入我的用户名和密码-我没有.

So, I am new to Android Studio. I'm following an online course step by step. I'm using ParseServer on AWS. I've managed to get my appId, etc. and can connect with a Java SSH Client directly from my browser. My app can successfully store information in the ParseServer, but I can't access the parse dashboard. When I try to it asks me to enter my username and password -- which I don't have.

我已经找到了一个文件(在bitnami终端中),我想也许我应该在这里成为一个帐户?

I've found a file (in bitnami terminal) and I think that I should maybe make myself an account in here?

# /home/bitnami/apps/parse/.forever/config.json


{
  "root": "/opt/bitnami/apps/parse/.forever",
  "pidPath": "/opt/bitnami/apps/parse/.forever/pids",
  "sockPath": "/opt/bitnami/apps/parse/.forever/sock",
  "loglength": 100,
  "logstream": false,
  "columns": [
    "uid",
    "command",
    "script",
    "forever",
    "pid",
    "id",
    "logfile",
    "uptime"
  ]
}

推荐答案

问题出在实例化仪表板的任何地方.对我来说,这是在index.js内部.
var dashboard = new ParseDashboard({ "apps": [ { "serverURL": process.env.SERVER_URL, "appId": process.env.APP_ID, "masterKey": process.env.MASTER_KEY, "appName": process.env.APP_NAME, "javascriptKey": process.env.JS_KEY, } ], "users": [ { "user":<username>, "pass":<password> } ], "useEncryptedPasswords": true, //Requires Bcrypt encrypted passwords. Set to false if you want the explicit <password> plain text string to be your password) "trustProxy": 1 });

The issue lays with wherever you're instantiating the dashboard. For me, this is inside index.js.
var dashboard = new ParseDashboard({ "apps": [ { "serverURL": process.env.SERVER_URL, "appId": process.env.APP_ID, "masterKey": process.env.MASTER_KEY, "appName": process.env.APP_NAME, "javascriptKey": process.env.JS_KEY, } ], "users": [ { "user":<username>, "pass":<password> } ], "useEncryptedPasswords": true, //Requires Bcrypt encrypted passwords. Set to false if you want the explicit <password> plain text string to be your password) "trustProxy": 1 });

这篇关于解析服务器仪表板登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆