Skip to content
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

Help with docker run for .p12 Certs and APNS #58

Open
alombard opened this issue Aug 11, 2016 · 2 comments
Open

Help with docker run for .p12 Certs and APNS #58

alombard opened this issue Aug 11, 2016 · 2 comments
Labels

Comments

@alombard
Copy link

alombard commented Aug 11, 2016

Hello,

After reading the parse docs I see that I need to include the following configuration to get parse server running with certificates.

https://github.com/ParsePlatform/parse-server/wiki/Push

The init looks like this when running this natively:

 var server = new ParseServer({
    databaseURI: '...',
    cloud: '...',
    appId: '...',
    masterKey: '...',
    push: {
      android: {
        senderId: '...',
        apiKey: '...'
      },
      ios: {
        pfx: '/file/path/to/XXX.p12',
        passphrase: '', // optional password to your p12/PFX
        bundleId: '',
        production: false
      }
    }
  });

My question is - how do I pass the IOS configuration array if I have an existing p12 I want to use in a docker container?

I've tried the following by mounting a volume where my p12 cert is located but since the push configuration seems to be an array I'm not sure of the syntax (below generates an error (yes the 'xxxxxx' are substitutes for my actual keys / config values).

 docker run -d \
-v ${PARSE_CLOUD:-/gratitudecloudcode/cloud}:/parse/cloud \
-v /usr/gratitudepushcert:/parse/apnscert \
-e DATABASE_URI=mongodb://xxxxxxxxxxx \
-e APP_ID=xxxxxxx  \
-e MASTER_KEY=xxxxxxx  \
-e FACEBOOK_APP_IDS=xxxxxxxx \
-e FILE_KEY=xxxxxxx
-e PUSH={   \
      ios: {    \
        pfx: '.........Prod-APNS.p12', \
        passphrase: '', \
        bundleId: 'xxxxxxxxx', \
        production: true \
      } \
    } \
-p 1337:1337                                         \
 --name gratitude-parse-server           \
yongjhih/parse-server:dev \

Any help is appreciated.

Andrew

@alombard
Copy link
Author

alombard commented Aug 15, 2016

Any thoughts on this syntax @yongjhih?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants