mirror of
https://github.com/lone-cloud/prism-android
synced 2026-06-03 11:03:10 -07:00
1.5 KiB
1.5 KiB
Sunup - Android
UnifiedPush provider using Autopush
Usage
- Install this application
- Open it, and grant background usage without restrictions permission
- Register your application compatible with UnifiedPush (may be transparently done)
Self-host
It is possible to your own Autopush server. Autopush is designed to work with Google BigTable but it is also possible to use it with redis.
For this:
- Clone Autopush (this fork until redis support has been merged).
- Generate Fernet keys:
- Set a python virtual env, for instance:
venv .venv && . .venv/bin/activate - Install cryptography
python -m pip install cryptography - Run the generation script:
python scripts/fernet_key.py
- Set a python virtual env, for instance:
- Replace the following values in
redis-docker-compose.yml:AUTOCONNECT__CRYPTO_KEYAUTOCONNECT__ENDPOINT_SCHEMEAUTOCONNECT__ENDPOINT_HOSTNAMEAUTOCONNECT__ENDPOINT_PORTAUTOEND__CRYPTO_KEYSAUTOEND__ENDPOINT_URL
- Setup a reverse proxy to add TLS support, for instance with caddy:
# Autoconnect endpoint
push.domain.tld {
reverse_proxy 127.0.0.1:8080
}
# Autoend endpoint
updates.push.domain.tld {
reverse_proxy 127.0.0.1:8000
}
- In the android app, change server to the autoconnect endpoint (here
push.domain.tld).