ioBroker.node-red icon indicating copy to clipboard operation
ioBroker.node-red copied to clipboard

https, ip address and localLink

Open crocri opened this issue 2 years ago • 3 comments

Hello! https secure = on makes no sense for ip addresses. If https, host name should be choosable (same as for homematic rpc adapters) Workaround here is to set ip to name via "iob set node-red.0 --bind my.domain.com"

Further on, "localLink": "http%s%://%ip%:%port%%httpAdminRoot%" doesn't work correct (https protocol is missing in overview/not set). So link in admin overview never works...

best regards Crocri

crocri avatar Jan 15 '23 19:01 crocri

Hhmmm ... yes and no ... "bind" is always going to a network interface and has nothingn to do with HTTPS ... But yes in fact then bind can not be used for creating the link ...

Apollon77 avatar Jan 16 '23 07:01 Apollon77

yes and no ;-) If bind = IP -> no https possible, because https://IP:Port will never ever has a certificate (not allowed) If bind = hostname, then certificate is possible: https://my.domain.com So bind should be an interface, but with name, not ip address (esspecially for https)

In my opinion if bind = ip and https = on -> bug, not enhancement, because https never works ok?

crocri avatar Jan 16 '23 13:01 crocri

We say exactly the same ... The "general" topic is that iobroker do not know anything about "how the system is accessed as domain" ... admin since some versions has such support ... In fact we would need a new setting to set the "https domain to use" or such

Apollon77 avatar Jan 16 '23 13:01 Apollon77