A simple dockerized service for Apple Push Notification.
370
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 APP_ENV 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}'
Content type
Image
Digest
sha256:e3a443d61…
Size
2.3 MB
Last updated
almost 11 years ago
docker pull rastermedia/apn