adamko-dev / kafkatorio

GNU General Public License v3.0
10 stars 0 forks source link

web-map: Enable support for hosting multiple Factorio servers #1

Open aSemy opened 2 years ago

aSemy commented 2 years ago

Presently the web-map only supports one Factorio server, as the URL is hard coded. However in the Kafka topics most (all?) messages are keyed by a Server ID - so that's a good start.

Supporting multiple servers requires authentication. It's possible to send a token along with a syslog message. This could be a JWT that contains a server ID. All messages must contain a server ID, and that can be mapped to a name. The tile-server can then use a new directory for each Factorio server.

Out-of-scope

Nice to haves, but not necessary. Maybe in a later ticket.

aSemy commented 1 year ago

Initial multi-server support has been implemented. Servers are identified with JWT authentication (manually created at the moment).