Skip to content

matzew/ups-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabric8 Gateway for Unified Push Server

If you want to run the Unified Push Server behind a firewall, you need to at least make sure that a few of its RESTful APIs are still available on the internet, in oder to have mobile devices registering against it.

This project shows how to write a simple gateway/proxy, exposing only a those endpoints that deal with the device (un)registration.

Inside of the WEB-INF folder, the ups-proxy-config.json contains the following rules

{ "rulebase" : [
    { "rule": "/rest/registry/device", "to": "http://INTERNAL_IP:YOUR_PORT/ag-push/rest/registry/device"},
    { "rule": "/rest/registry/device/{token}", "to": "http://INTERNAL_IP:YOUR_PORT/ag-push/rest/registry/device/{token}"}
]}

With this configuration mobile apps on the devices will register against the Unified Push Server, going through this proxy.

Have fun!

About

Fabric8 Gateway for UnifiedPush Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages