Open TAProgramming opened 7 years ago
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
-e SERVER_URL=https://your-parse-sever/parse
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. Parse Server still functions correctly with my javascript web app though. Dashboard still not playing nice.
SOLVED. Problem was incompatibility with parse server version - BUG. Solution: used yongjhih/parse-server:dev (v. 2.2.18) Also used yongjhih/parse-dashboard:1.0.15
This combination works. No need for SERVER_URL on parse server config. Used https://xxx.com/parse/ on parse dashboard config. This is the domain with SSL configured with letsencrypt and is a wrapper through Nginx proxy to http://localhost:1337/parse/
Update on bug. If I call yongjhih/parse-server:2.2.18 directly when starting docker container for parse server, then parse dashboard comes up with unauthorized again and no longer connects to server.
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. This is despite yongjhih/parse-server:dev using version 2.2.18 anyway.
I'm having the same issue. parse-server:dev
and parse-dashboard:1.0.18
.
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. :)