Help me get the basics to work #227
Replies: 4 comments 4 replies
|
Could you check your Home Assistant logs? Are you seeing messages like this when you try to connect?
If so, you need to tell Home Assistant to accept messages from TSDProxy with a statement along the lines of this in your Home Assistant's configuration.yaml: There is more information in the HA documentation here. Note that exact IP address that docker chooses for it's "internal" address might be different each time you create the container. If that doesn't work, please post your full HA docker compose file. |
|
For the record, this is my Home Assistant docker-compose file: ~ |
|
Can you see the "machine" created by TSDProxy for Home Assistant in the Tailscale console? Is it showing as online (green dot)? Maybe also post your TSDProxy docker-compose file and config.... (take care to redact any auth-keys). Steve |
|
So today I tackled the problem again. I started fully from scratch, using tsdproxy v2 and see if that helps - no changes here though. All I realized is, that the "/config/tsdproxy.yaml is created and populated with the following" is actually not what is being autopopulated. I have the feeling that I'm overlooking something that everyone else takes for granted, so it isn't even in the documentation...
I tried different browsers on different machines in my tailscale network. I feel like I am missing out on a crucial part of docker networks or the tls certificate generation, that should be done automatically in the background? I am running the default docker configs, do I have to change @almeidapaulopt do you have any idea here? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am pretty new to networking and I cannot wrap my head around, how exactly tsdproxy works and where I should even start to troubleshoot my problem.
I am trying to set up some (I hope) rather simple services using tailscale and tsdproxy. I started with homeassistant and stirlingPDF, as they have rather simple compose files with not so many variables. I have fiddled through all possibilities I could think of, but I cannot make them available as a ts machine, that is reachable on its ts name.
I use docker compose to setup my containers. Tailscale is installed on both my rpi and my laptop, In the admin console of tailscale, I can see them both as machines. tsdproxy is running on my rpi and is reachable under rpi.funny-name.ts. net:8080 as per default configuration.
Now I want to set up HA. I insert into the default HA compose file:
This is already enough to make HA appear as a tailscale machine.
Although I cannot reach HA under homeassistant.funny-name.ts. net. I tried both with and without https and :8123
I can reach it under rpi.funny-name.ts. net:8123 though as I have network_mode: "host" in the default config. If I take that out, I can’t reach HA at all. I already tried
tsdproxy.container_port: "8123"as a label,ports: - 8123:8123,in literally every combination possible. I am pretty sure I am somewhere messing up the networking so that tsd, tailscale and HA are just not able to communicate with each other, but I do not understand enough of this part of docker & tailscale. I get the exact same problem when trying to set up stirlingPDF. I can see the machine, but I cannot access it.
When I click on the links on the tsdproxy dashboard, I get a HTTP ERROR 502 after a long wait.
What do I need to change in my HA/stirlingpdf compose file, to make this work?
Every bit of help is much apprechiated!
Thanks!
--
Laptop is running Win11
Rpi 5 is running Raspbian OS
All reactions