# HG changeset patch # User Kim Alvefur # Date 1613884702 -3600 # Node ID a76493b75dec8629d3347d19eb9d3abe1a701ffb # Parent 8eff5c7443956947a07ad2205e04f5136366c272 mod_bosh: Include warning if endpoint accessed insecurely (#1172) This is to make it obvious if a misconfigured a proxy or the request really is insecure. Perhaps it should also check c2s_require_encryption? diff -r 8eff5c744395 -r a76493b75dec plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sun Feb 21 06:17:40 2021 +0100 +++ b/plugins/mod_bosh.lua Sun Feb 21 06:18:22 2021 +0100 @@ -536,6 +536,7 @@ --- title = "Prosody BOSH endpoint"; message = "It works! Now point your BOSH client to this URL to connect to Prosody."; + warning = not (consider_bosh_secure or event.request.secure) and "This endpoint is not considered secure!" or nil; --

For more information see Prosody: Setting up BOSH.

}) or "This is the Prosody BOSH endpoint."; end