almeidapaulopt / tsdproxy

Tailscale Docker Proxy
MIT License
429 stars 16 forks source link

Prevent recreation of machines #53

Open Tom7320 opened 3 days ago

Tom7320 commented 3 days ago

Hi everyone,

Last night, my server auto-updated the tsdprox container. After the container restart, tsdproxy (tried) to recreate the already existing machines. The problem with the recreation is either:

Therefore, I would like tsdproxy to prevent the creation of machines that already exist. Is that possible? Another solution could be the use of never expiring OAuth ephemeral nodes?!

Thx a lot for the great software! :blush:

tmnyhbs commented 3 days ago

Came here to say I had this same issue this morning.

I stopped the TSDProxy container and then removed all the created machines from my TS dashboard. Restarted and back to usual.

It made me think of another possibly feature — a TSDProxy script/command to purge all created containers created by TSDProxy from Tailscale. Could be very helpful if the initial issue is hard to avoid ongoing.

almeidapaulopt commented 3 days ago

If you activate ephemeral, they will be deleted automatically.

Tom7320 commented 2 days ago

Yes. I know. But as soon as the key expires, this will fail. I am looking for a more “permanent” solution for a couple of my services.