[Rest API] - Is it possible to deactivate http and have only https?

Hi everybody.

For my project I would like to have only https for security reasons. Is it possible to deactivate the http port at all? Or are there viable workarounds?

Thank you in advance for the help!


I think if you set security:option=ON it will not allow http connections at all. Beware though that this will break my.openhab addon if you are using that.

Set up a firewall on the OH server and block incoming on port 8080 and only allow it on 8443 (or whatever ports your Oh is running on).

If you are Linux I personally like ufw as it is much simpler to set up and use than iptables.

Hi Rich, thank you for the reply. I will try your solutions.

Thanks again!