yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

Three problems: Email Adapter, File Upload, GCS config. #63

Open r0712v opened 8 years ago

r0712v commented 8 years ago

Parse Server version: 'yongjhih/parse-server:dev' 2.2.18 Parse Dashboard version: 1.0.18

1st problem: Even though I have configured my domain with Mailgun, and added the email, appname, and public server url variables into docker when starting it up, I still get the error from parse: "An app Name, public Server URL, and emailAdapter are required for password reset functionality."

2nd problem: Can't upload any files from Javascript SDK. Using identical file upload code from documentation. Error in Chrome: XMLHttpRequest cannot load https://domain.com/parse/files/Photo.jpg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://domain.com' is therefore not allowed access. The response had HTTP status code 413.

3rd problem: GCP/GCS fileadapter config is also being ignored by docker. File upload in Dashboard goes to gridstore, and in my javascript app I still get the same error as in problem number 2.

Here is my docker config for parse-server:

 docker run -d \
             -e DATABASE_URI=${DATABASE_URI:-mongodb://parse:pwd@domain.com:27017/appname?ssl=true} \
             -e APP_ID=id\
             -e MASTER_KEY=masterkey\
         -e FILE_KEY=filekey  \
         -e APP_NAME=appname\
         -e PUBLIC_SERVER_URL=https://domain.com/parse  \
         -e VERIFY_USER_EMAILS=true\
         -e EMAIL_MODULE=parse-server-simple-mailgun-adapter\
         -e EMAIL_FROM=noreply@domain.com\
         -e EMAIL_DOMAIN=domain.com\
         -e EMAIL_API_KEY=key\
         -e GCP_PROJECT_ID=project-000000\
         -e GCP_KEYFILE_PATH=project-000000xxxxxx.json\
         -e GCS_BUCKET=project-storage\
         -e ALLOW_CLIENT_CLASS_CREATION=false\
         -e MAX_UPLOAD_SIZE=100mb\
             -p 127.0.0.1:1337:1337\
             --name parse-server\
             yongjhih/parse-server:dev
yongjhih commented 8 years ago

Hi @r0712v,

  1. I tried mailgun before, it works for me. I'll try to reproduce it.
  2. I've never try that file uploading before, I think it maybe upstream issue(ParseServer) if it's not working.