mc-router icon indicating copy to clipboard operation
mc-router copied to clipboard

Refresh Servers without closing router.

Open ZribeDev opened this issue 2 years ago • 6 comments

How can i refresh the servers every 10 seconds without closing the router?

ZribeDev avatar Jun 25 '23 11:06 ZribeDev

Can you clarify what you mean by refreshing the servers?

itzg avatar Jun 25 '23 13:06 itzg

Hey Itzg, Thanks for making the Minecraft server docker image.

I mean that i can have it like infrared so like there is a proxies folder and i can just add one and it automatically adds it without needing to close it.

Infrared is broken so i rather use this

ZribeDev avatar Jul 02 '23 13:07 ZribeDev

For both Docker and Kubernetes there is support for auto-discovery at runtime. Take a look at the README for more info.

itzg avatar Jul 02 '23 16:07 itzg

...to clarify though, it is just a router and doesn't include some of the other features of Infrared like idle server and auto-start.

itzg avatar Jul 02 '23 16:07 itzg

yea i know, its perfect for my needs. i am not running it in docker tho. is there no way to make them reload the config automatically?

ZribeDev avatar Jul 02 '23 20:07 ZribeDev

Right now, the only other way would be to use the REST API. The code could be enhanced to handle a SIGHUP to reload the config file or watch the file for changes.

itzg avatar Jul 03 '23 13:07 itzg