Public | Automated Build

Last pushed: 2 years ago
Short Description
A simple dockerized service for Apple Push Notification.
Full Description

Apple Push Notification

This is a simple dockerized service for Apple Push Notification.

Just put your certs in /etc/apn/cert-prod.pem and /etc/apn/cert-dev.pem, your keyfiles in /etc/apn/key-prod.pem and /etc/apn/key-dev.pem and you're ready to go.

To start the container in production mode, set the _APPENV environment variable to production.

docker run -e APP_ENV=production -v /path/to/my/cert:/etc/apn/cert-prod.pem -v /path/to/my/key:/etc/apn/key-prod.pem -p 8080:8080 -d rastermedia/apn

Now you can send requests to it using JSON-RPC. Here's an example command:

curl -X POST http://10.0.23.12:8080/rpc -H "Content-type: application/json" -d'{"method":"ApnService.SendMessage","params":[{"Message":"Test","Token":"eba5c...83361"}],"id":1}'

Docker Pull Command
Owner
rastermedia
Source Repository