Gotify-UP - Android
Gotify is “a simple server for sending and receiving messages”.
- License: MIT
- Sources: https://github.com/UnifiedPush/gotify-android/
- Server: https://github.com/gotify/server
- Technology: WebSocket
- Download for Android:
- A server to connect to. A server is open to registration at https://gotify1.unifiedpush.org, though it is recommended to host your own so your data stays private and the public server doesn’t overload.
- Install the application.
- Connect to the server.
- You’re ready!
If you are self-hosting the server, you will need to add a rewrite-proxy to the default configuration.
It can be achieved with the following nginx rule (which uses lua):
location /UP {
access_by_lua_block{
local json=require("cjson")
ngx.req.read_body()
local req = ngx.req.get_body_data()
local newreq = { ["message"] = req }
local body = json.encode(newreq)
ngx.req.set_body_data(body)
}
if ($request_method = GET ) {
return 200 '{"unifiedpush":{"version":1}}';
}
proxy_set_header Content-Type application/json;
proxy_pass http://127.0.0.1:8080/message;
proxy_set_header Host $host;
# Force https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
}
It can be achieved with UnifiedPush Common Proxies, which is a standalone program that can be installed to run as a rewrite proxy for Gotify. It can also run with docker.