;==============================================================================
; http.conf  —  Asterisk's built-in web server terminates the WSS handshake.
; Without tlsenable=yes + a valid cert, the mobile app's wss:// connect fails
; BEFORE any SIP is exchanged. This is the #1 cause of "app won't register".
;==============================================================================

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088                       ; plain ws (dev only)

; --- TLS / WSS (production) ---
tlsenable=yes
tlsbindaddr=0.0.0.0:8089            ; must match transport-wss bind in pjsip.conf
tlscertfile=/etc/asterisk/keys/asterisk.crt   ; full chain, publicly-trusted (Let's Encrypt)
tlsprivatekey=/etc/asterisk/keys/asterisk.key

; The mobile app connects to:  wss://your-asterisk-fqdn:8089/ws
; (the "/ws" path is served automatically when a wss transport exists)
