Repository navigation
Can I run the server at home or on a school network, with a self-signed certificate? #566
|
I have a spare machine at home (or at the school) and no public IP. Can the families' phones use it over the local network, or over the internet with a self-signed certificate? |
Replies: 1 comment
|
The machine can be the server, but phones cannot use a self-signed certificate or a plain What works at home:
docs/deploy.md now describes the release build's HTTPS requirement (#459, fixed in #539). #439 is a one-recipe setup for a machine of your own. More: docs/build.md, Why a debug build speaks HTTP and a release build does not. |
The machine can be the server, but phones cannot use a self-signed certificate or a plain
http://address. A release APK talks to its server overhttps://only, trusting only the phone's system certificate authorities — ruling out a self-signed certificate or a CA of your own installed on the phone. A LAN address such ashttp://192.168.1.10:8000works only in a debug build; debug builds are for development (#202).What works at home:
docker compose up -d --build(Option 2). The bot uses long polling, needing no inbound address — only an outbound connection to Telegram.