Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

matrix-server-config tries to login on wrong url #72

Closed WesleyE closed 1 year ago

WesleyE commented 1 year ago

Issue: When served trough an reverse proxy on a sub-path, the absolute call to /matrix-chat/login fails.

Usecase: When using node-red, installed as an Home Assistant Addon, the addon is served trough a reverse proxy on a sub path. https://ha/a0d7b954_nodered/dashboard for example. In this case, requests from within the node config should be done with an relative URI as per https://github.com/node-red/cookbook.nodered.org/wiki/Create-an-admin-configuration-API-endpoint.