Closed zerocool2k closed 2 months ago
Try add host header:
headers:
host:
authorization:
Close this issue as the author did not respond back.
Sorry @lovelylain , I was away for a while. I did try adding "host: https://subdomain2.mydomain.com" to the headers but the "Request URL" was still formed incorrectly (as pointed out in the original post above). Any other suggestion?
host: subdomain2.mydomain.com
Thanks @lovelylain , it works!
@lovelylain I have a weird issue now though. I added another ingress for subdomain3.mydomain.com with the same config (with different domain and object name of course). However, only the other ingress works, the new one does not (it still displays the login prompt and it does not accept the login with correct user & pass which will work if I log in directly to subdomain3.mydomain.com). Any suggestion?
maybe not support ingress, use work_mode:iframe instead.
Thanks. That works for web. However, on the mobile app, it still gives "401 Authorization" (no login popup). Any idea?
@zerocool2k use work_mode:auth with nginx.
I set up my HASS Configurator behind nginx from Swag, with basic http authentication. Everything is docker containers. Below is my ingress configuration:
When I click on the "HASS Configurator" menu on the side menu, it just show the default swag page ("Welcome to your SWAG instance...")
I checked browser console and found that the "Request URL" was "https://subdomain1.mydomain.com [which is my home assistant URL]" & "/api/ingress/" & "/configurator/" , instead of "https://subdomain2.mydomain.com" which it is supposed to be.
Also, I don't see the authorization headers being sent in the request headers at all. Is the configuration above correct if I want to send authorization headers for basic http auth?