### Generate Fernet Keys with Python Source: https://github.com/sunup/android/blob/main/README.md Generate Fernet keys required for Autopush server configuration. Ensure you have a Python virtual environment set up and the cryptography library installed. ```bash venv .venv && . .venv/bin/activate python -m pip install cryptography python scripts/fernet_key.py ``` -------------------------------- ### Configure Reverse Proxy with Caddy Source: https://github.com/sunup/android/blob/main/README.md Set up a reverse proxy using Caddy to handle TLS termination for Autopush endpoints. Ensure the domain names and ports match your server configuration. ```nginx # 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 } ``` -------------------------------- ### Debug Websocket Connection with Websocat Source: https://github.com/sunup/android/blob/main/README.md Debug websocket connections to an Autopush server by setting up a reverse TCP connection from the device to your PC and using websocat to MITM and log messages. Remember to update the app's default API URL. ```console $ # Create reverse tcp connection from test device to our pc $ adb reverse tcp:8081 tcp:8081 $ adb reverse tcp:8081 tcp:8081 $ # MITM the connection, and log messages $ websocat -t log:ws-l:127.0.0.1:8081 wss://push.services.mozilla.com/ ``` -------------------------------- ### Sunup Android Package Name and SHA-256 Hash Source: https://github.com/sunup/android/blob/main/README.md The package name and SHA-256 hash for the Sunup Android application. Use these details with tools like AppVerifier or apksigner for APK verification. ```plaintext org.unifiedpush.distributor.sunup 3B:33:D7:8A:5B:CA:C1:B9:52:75:6B:08:FE:88:30:CE:D3:87:AB:B6:B9:56:B0:2A:47:EF:80:32:1D:4A:2B:88 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.