Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 4 tasks
aSemy opened this issue Jul 17, 2022 · 1 comment
Open
1 of 4 tasks

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

aSemy opened this issue Jul 17, 2022 · 1 comment

Comments

@aSemy
Copy link
Contributor

aSemy commented Jul 17, 2022

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.

  • events-server: Add some sort of authentication that will check incoming messages for a JWT token, and verify it
  • web-map: add a new path per server? Not sure how to do this
  • events-server: websocket clients should send a server ID and only subscribe to events for that server
  • events-server: a table of registered servers, along with pertinent data (contact info, server name)

Out-of-scope

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

  • web-map: an overview page of all servers
  • Kafkatorio portal: a web page where server owners can register a server and create their own keys
@aSemy aSemy changed the title Allow for multiple Factorio servers web-map: Enable support for hosting multiple Factorio servers Jul 17, 2022
@aSemy
Copy link
Contributor Author

aSemy commented Oct 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant