-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard unable to connect to server #62
Comments
Ok, you wrapped a https proxy (https://your-parse-sever/parse) for parse-server (:1337). I think you must make https proxy work correctly first. Try to run parse-server and parse-dashboard with |
Thanks for replying. I have tried your suggestion, however it now comes up with "unauthorized" on Parse Dashboard. If I remove -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1 from the config then it comes up with this error even though it definitely is going through https: "Parse Dashboard can only be remotely accessed via HTTPS". My Master Keys are identical on both configurations for Parse server and dashboard. |
SOLVED. This combination works. |
Update on bug. However if I call yongjhih/parse-server:dev when starting docker container then dashboard connects through HTTPS to the server and it all works correctly. |
I'm having the same issue. |
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!
Environment Setup
I'm running Ubuntu 14.04 with Docker 1.11.2 on a Digital Ocean server.
docker run -d
-e DATABASE_URI=${DATABASE_URI:-xxxx}
-e APP_ID=${APP_ID:-xxxx}
-e MASTER_KEY=${MASTER_KEY:-xxxx}
-e FILE_KEY=${FILE_KEY:-xxxx}
-p 127.0.0.1:1337:1337
--name parse-server
yongjhih/parse-server
docker run -d
-p 127.0.0.1:2022:22
--volumes-from parse-server
--name parse-cloud-code-git
yongjhih/parse-server:git
docker run -d -e PARSE_DASHBOARD_CONFIG='{ "apps": [ { "serverURL": "https://localhost:1337/parse/", "appId": "xxxx, "masterKey": "xxxx", "appName": "xxxx" } ], "users": [ { "user":"Admin", "pass":"Qwerty" } ] }' -p 4040:4040 --link parse-server --name parse-dashboard yongjhih/parse-dashboard
I have parse server, cloud code and dashboard running on localhost as per configuration. I have SSL set up with Lets-Encrypt and my domain is connecting to localhost via an Nginx wrapper.
My Nginx config:
Steps to reproduce
My Javascript Parse Web App connects to Parse Server and my MongoDB perfectly. Dashboard is the problem.
Localhost won't even connect, even if I try via HTTP. If I stop securing the ports by removing "127.0.0.1", use the serverURL in the dashboard config as my server's IP "http://xx.xxx.xxx.xx:1337/parse" and add -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1. Then I can connect via HTTP.
However I need to connect via HTTPS. My domain name set up via Nginx won't work either as the server URL option, even though I'm using my domain URL to connect my javascript web app to my parse server.
Please help. Thanks. :)
The text was updated successfully, but these errors were encountered: