gpt4 book ai didi

ubuntu - Parse Dashboard 只能通过 HTTPS 远程访问

转载 作者:太空宇宙 更新时间:2023-11-03 16:44:05 34 4
gpt4 key购买 nike

我正在尝试在我的 DigitalOcean 服务器上部署解析服务器和解析仪表板。我通过 docker-compose 安装在这个 git 上: https://github.com/yongjhih/docker-parse-server

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

Parse Dashboard can only be remotely accessed via HTTPS

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

1.- 根据解析 (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.

所以我将我的环境变量设置为 1。但是没有任何反应。

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

这是怎么回事?

谢谢。


问题:

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

最佳答案

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

   {
"apps": [...],
"users": [
{
"user":"user1",
"pass":"pass"
},
{
"user":"user2",
"pass":"pass"
}
]
}

关于ubuntu - Parse Dashboard 只能通过 HTTPS 远程访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35950261/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com