nginx-proxy-manager-switches icon indicating copy to clipboard operation
nginx-proxy-manager-switches copied to clipboard

multiple domains with the same username not possible

Open v1-valux opened this issue 1 year ago • 3 comments

First of all - I love this integration and I waited a long time for this.

But - I think it has a big caveat coming with it. If you add a second (or any multiple) instance of "NPM Switches" with the same username (mail-address) in homeassistant, the latter instance would not be added - and no error is shown.

grafik

I guess this is because of entries using the email address as an index. (?) But unfortunately I could not find a log-entry about that failure.

My suggestion - if confirmed - would be to at least show a message why it's failing. EDIT: .. and of course it would be great, if indexing the url (or some generalized combination of both) could solve that issue.

Using the same mail-address for multiple urls can be convenient in many ways I guess. For instance to maintain multiple hosts within the same or other (sub-)domains using the same mail.

A possible workaround could be to make an alias of that email-address and adding that email as a second user in NPM. (using aliases for different domains would be cleaner in general - I know) But as I cannot do that in a specific case, I have no possible way of monitoring or switching a second NPM-instance in HA.

Thanks for reading. o/

v1-valux avatar Jun 11 '23 17:06 v1-valux