Phone & network
Only needed for your phone, for captions on another computer, or for access from outside the mosque.
Your phone on the mosque's Wi-Fi
Copy
config.example.yamltoconfig.yaml, and set:server: host: 0.0.0.0 exposure: lan
Restart:
pnpm turjuman start. It now also prints On the network:http://192.168.x.x:8765/app.Open that address on your phone and log in. Add it to your home screen to open it like an app.
- The phone can't reach it? Allow incoming connections for Node.js (or Docker) in the computer's firewall.
- Give the computer a fixed address (a DHCP reservation in the router): screen links and the certificate below contain it.
- Over plain
http://the password crosses the Wi-Fi unencrypted. Once HTTPS works, log in at thehttps://address. - With
exposure: lan, the first admin can only be created on the computer itself.
With Docker: set server.exposure: lan in config/config.yaml and CAPTIONS_BIND=0.0.0.0 in .env, then make restart. On your phone, open http://<IP>:8765/app with this computer's IP address. No admin account yet? Create it with make user-add USERNAME=<name> ADMIN=1.
Captions on another computer or TV
Browsers open the microphone only on HTTPS, or on the computer that runs Turjuman itself. For a caption page on another device:
On the Turjuman computer, make a certificate:
bash scripts/lan-cert.sh tls With Docker:
make lan-cert, which writesconfig/tls. It makes a small certificate authority (CA) for this installation, and a certificate for this computer's addresses, valid for 825 days. Run it again when the computer's IP address changes; the CA stays the same.On Windows the script can't find the address: give it,
LAN_NAMES="192.168.1.20" bash scripts/(Docker:lan-cert.sh tls make lan-cert LAN_NAMES="192.168.1.20").In
config.yaml, set bothserver.exposure: lan(as above) andserver.https.port: 8443:server: host: 0.0.0.0 exposure: lan https: port: 8443
Then restart Turjuman: HTTP stays on 8765, and HTTPS is added on 8443. Both settings are needed: with
exposure: local, HTTPS answers on this computer only.With Docker: the same two settings in
config/config.yaml, andCAPTIONS_BIND=0.0.0.0in.env; thenmake restart.On each device, once: download the CA from
http://<server>:8765/ca.crtand install it as trusted. Without Docker,startprints this address.- iPhone, iPad
- Settings → Profile Downloaded → Install; then Settings → General → About → Certificate Trust Settings → turn on Turjuman local CA.
- Android
- Settings → Security → Encryption & credentials → Install a certificate → CA certificate.
- Windows (the OBS PC)
- Open the file → Install Certificate → Local Machine → Trusted Root Certification Authorities; restart OBS.
- Mac
- Open it in Keychain Access (System), and set Always Trust.
Open
https://<server-ip>:8443and log in again: logins are per address. The screen links now start withhttps://.
pnpm turjuman doctor (Docker: make doctor) checks the certificate: that it is there, matches its key and has not expired, and, without Docker, that it names this computer's address. It says when to make it again.
In Docker, make screens prints only the http://127.0.0.1 links. For another device, copy the HTTPS link in the app opened at http://<server-ip>:8765/app: Show on a screen → On another computer or TV.
tls/ca.key can sign certificates that every device with the CA trusts: keep it private, and remove “Turjuman local CA” from devices that stop using Turjuman.
OBS cannot click through a certificate warning, so install the CA on the OBS computer. OBS on the computer that runs Turjuman can use the http://127.0.0.1 link instead: On this computer in the app, or pnpm turjuman screens url <id> --local.
From outside the mosque
Put your own HTTPS reverse proxy, for example nginx, in front of Turjuman: it has the certificate and the hostname, and forwards to 127.0.0.1:8765. The complete nginx block: the hosting guide.
In config/config.yaml set (then make restart):
server: exposure: public trustProxy: true
There is no hostname to set: links follow the one your proxy forwards (X-Forwarded-Host, X-Forwarded-Proto), so it can change at any time. The admin token for make and the CLI is made by Turjuman itself, in config/admin.token. make screens prints http://127.0.0.1 links: copy the public link in the app, or set the optional hosted.publicUrl.
Create the first admin with make user-add USERNAME=<name> ADMIN=1 (the password is shown once), and log in at https://<your address>/app. More: HTTPS and your hostname.
Caption pages without a screen link
Screen links need no access key. A plain caption page such as /ar/nl needs one with exposure: lan or public. Access keys are not your Soniox key:
pnpm turjuman keys add --label "Mosque OBS" --daily-minutes 120The key is shown once. pnpm turjuman usage shows the minutes per key, and pnpm turjuman keys revoke <id> revokes one. More in Commands.
If it doesn't work
| “Microphone needs HTTPS” | Use the HTTPS address (port 8443), or open the page on the computer that runs Turjuman. |
|---|---|
| A certificate warning | Install the CA on that device (step 3). OBS cannot click through it. |
The phone can't open http://<IP>:8765 | Check host: 0.0.0.0 and exposure: lan (Docker: CAPTIONS_BIND=0.0.0.0 in .env), and the computer's firewall. |
| The computer's IP address changed | Make the certificate again: bash scripts/lan-cert.sh tls, or make lan-cert (on Windows with LAN_NAMES, step 1); then restart Turjuman. The CA stays the same, so devices keep it. |
| Logged out on the new address | Log in again: logins are per address. |
Step by step, with more detail: HTTPS on the LAN, and the Docker guide.