I need to set the edge controller host and can't find the environment variable that sets it
Hi @ferjep, what are you using the edge controller host for? I assume you have used an identity file, right? That identity file will contain the address of the controller to connect to. You shouldn't "need" the host directly. Is there something you're looking for?
Hello there,
Good catch. I had forgotten that I had seen the address in the identity file.
You've seen my other post about ziti.init
hanging, so I decided to do a test and take the app out of the Docker Compose configuration and run it standalone. This means running OpenZiti in Docker and the app outside of it. However, the app was trying to connect to ziti-edge-controller
, and of course, it couldn't see it.
How is it done in this cases? Looks like I can't move the identity file outside of the docker network if I created in it.
The way I do it when I'm doing local testing like this is two-fold. I will either update the /etc/hosts file (by far the easiest way, but easy to forget about) or since I run a pihole at home I'll add a dns entry for whatever I want there.
The better way would be to recreate the docker container and use the env vars that allow you to set the actual advertise address of the controller and router. Depending on which docker file you're using and which image, that varies slightly. There is good documentation on changing that advertised address on the site. You would want to advertise something that CAN be reached from outside of docker.
I also ran the sample from the node sdk's readme but I don't seem to be able to replicate what you're seeing in my tests so far fwiw. Let's leave this thread alone and comment on the other one as needed. I think this one is "answered" now.