Parse Dashboard只能通过HTTPS远程访问

Raf*_*ñoz 10 ubuntu https parse-platform digital-ocean parse-server

我正在尝试在我的DigitalOcean服务器上部署Parse Server和Parse Dashboard.我在这个git上通过docker-compose安装:https: //github.com/yongjhih/docker-parse-server

当我访问它时,http: //rafael-ruiz.es:4040它说:

Parse Dashboard只能通过HTTPS远程访问

所以这些是我的解决方案:

1.-根据Parse(https://github.com/ParsePlatform/parse-dashboard)

在生产中部署

如果您要部署到Heroku或Google App Engine等提供商,SSL端点会提前终止并由提供商处理,您可能会遇到此错误:Parse Dashboard只能通过HTTPS远程访问.

在继续之前,请确保无法通过HTTP访问您的服务器.有关部署的强制HTTPS连接,请参阅提供程序文档.

设置环境变量PARSE_DASHBOARD_ALLOW_INSECURE_HTTP = 1以告知解析服务器跳过安全测试.

所以我将我的环境变量设置为1.但没有任何事情发生.

2.-我已启用ALREADY https(尝试https://rafael-ruiz.es).但是当我尝试:https://rafael-ruiz.es:4040它不起作用.

这有什么问题?

谢谢.


题:

是不是因为我必须使用我的SSL证书配置一些端口?

小智 6

第一种方式:您可以在命令行上使用"--allowInsecureHTTP true"参数,并使用配置文件的身份验证使用用户部分:

   {
      "apps": [...],
      "users": [
      {
           "user":"user1",
           "pass":"pass"
      },
      {
           "user":"user2",
           "pass":"pass"
      }
   ]
 }
Run Code Online (Sandbox Code Playgroud)


Arj*_*kla 5

按照以下步骤运行解析仪表板并通过公共 IP 访问:

  1. 创建一个配置文件 your-config-filename.json
  2. 向其中添加以下 json 结构,不要忘记替换为您的应用程序值:

{
  "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"
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

  1. 保存配置文件并运行以下命令:

parse-dashboard --config <your-config-filename>.json --allowInsecureHTTP true
Run Code Online (Sandbox Code Playgroud)

享受!