Disabling the Default HTTP Binding

How can the default HTTP binding on port 8080 be completely disabled under OpenHab2 (OH2.2, Linux - Raspberry Pi Jessie)? I’m looking to run an HTTPS only installation and neither commenting out OPENHAB_HTTP_PORT nor setting that value to "" is successful. I could block the port via a host-side firewall, but I’d much prefer the service not to open the port at all.

Thanks in advance for the help!


I pulled up the OPS4J PAX Web configuration documentation at https://ops4j1.jira.com/wiki/spaces/paxweb/pages/12059275/Basic+Configuration and found that setting org.osgi.service.http.enabled = false in org.ops4j.pax.web.cfg disabled the standard HTTP listener while still allowing the HTTPS listener to function. Seems to be working well!

One postscript, the OpenHabCloud plugin is hard-coded to use the HTTP service off of localhost. If you disable HTTP in favor of HTTPS, this plugin will fail. I have an open issue requesting an enhancement if anyone feels like taking this on. :slight_smile: