AeroGear UnifiedPush Server
Overview
The AeroGear UnifiedPush Server is a server that allows sending push notifications to different (mobile) platforms and has support for: * Appleโs APNs (HTTP/2) * Firebase Cloud Messaging
Project Info
License: |
Apache License, Version 2.0 |
Build: |
|
Documentation: |
|
Issue tracker: |
|
Mailing lists: |
Getting started
Cloning the repository
By the following commands you will create a local directory and clone this project.
git clone https://github.com/aerogear/aerogear-unifiedpush-server.git
cd aerogear-unifiedpush-server
Running locally (Standalone)
By the following commands you will create a local directory and clone this project.
mvn clean install -DskipTests;
docker run -p 9999:8080 -it quay.io/aerogear/unifiedpush-configurable-container:master;
docker run -p 8081:80 -it quay.io/aerogear/unifiedpush-admin-ui:3.0.1;
To access this server go to http://localhost:8081/
.
|
The standalone is going to use H2 as database, AMQ provides for the Wildfly using to run the UPS and it will not use the Keycloak. |
|
If you would like to use Docker-Compose see README. |
Configuration
Container Configuration
The Unified Push Server build by default creates and registers a Docker formatted container image, quay.io/aerogear/unifiedpush-configurable-container. By default this container uses an in-memory database, in-vm amq messaging, and no authentication. While ideal for testing, for actual use the following environment variables should be set
Environment Variable |
Description |
|
URL of a KeyCloak server providing authentication. |
|
KeyCloak service port. |
|
Port to connect to Postgres database. |
|
URL of Postgres database. |
|
Postgres username to use. |
|
Postgres password to use. |
|
Artemis AMQ service URL. |
|
Artemis AMQ service Port. |
|
Artemis AMQ service username. |
|
Artemis AMQ service password. |
Unified Push Server
The Unified Push Server can be configured with either System Properties (passed to the Java commandline) or Environment Variables. The two options have different formats and the following list describes them using System Property Name
/Env Var Name
: Purpose
.
Environment Variable |
Description |
|
Custom host for sending Apple push notifications. Can be used for testing. |
|
Custom port for the Apple Push Network host. |
|
Custom host for sending Google Firebase push notifications. Can be used for testing. |
|
Override Keycloak Realm. |
|
Override Keycloak authentication redirect. |
|
Override the number of days the metrics are stored (default is 30 days). |
|
URL For AMQP Server. |
|
PORT For AMQP Server. |
|
Password for AMQP server. |
|
Username for AMQP server. |
|
a comma separated list of variants to be disabled per their variant type. See |
|
File system path for documentation links json file. See [docs-links](./jaxrs/src/main/resources/doc-links.json) as an example |
Releasing the UnifiedPush Server
The content of the [Release Process](https://github.com/aerogear/collateral/wiki/Release-Process-(Java)) is valid for this project as well. However, to build the full distribution
bundle, you need to fire off the release like:
## prepare the release and define the TAG and adjust the versions:
mvn release:prepare -Dtag=x.y.z.Final -Darguments=-Dgpg.passphrase=$MY_SECRET_PASS_PHRASE -Pdist,test
## run the actual release process and load the artifacts to JBoss Nexus
mvn release:perform -DperformRelease=true -Darguments=-Dgpg.passphrase=$MY_SECRET_PASS_PHRASE -Dgpg.useagent=true -Pdist,test
License
See LICENSE
Contributing
All contributions are hugely appreciated. Please see our Contributing Guide for guidelines on how to open issues and pull requests. Please check out our Code of Conduct too.
Questions
There are a number of ways you can get in in touch with us, please see the AeroGear community.
Found a bug?
If you found a bug please create a ticket for us on [Jira](https://issues.jboss.org/browse/AEROGEAR) with some steps to reproduce it.