Skip to content

Embedded proxy option #837

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

Open
andrewgazelka opened this issue Feb 22, 2025 · 0 comments
Open

Embedded proxy option #837

andrewgazelka opened this issue Feb 22, 2025 · 0 comments

Comments

@andrewgazelka
Copy link
Member

To set the game server address one can do:

world.set(GameServerEndpoint::from(address));

However, this is not the address people will log into. It is the proxy address. I want there be an easy way to start the proxy and the game server at the same time.

A potential thought:

we make a new crate called embedded-proxy or similar and we can do

 world.set(UserFacingEndpoint::from(address)); 

(perhaps with better naming)

and there will be an observer to

  • start the proxy with UNIX socket (perhaps)
  • set GameServerEndpoint to something

This would allow running one binary to start game server and proxy.

Some thoughts:

  • A lot of the time you might want to toggle whether connecting to an external proxy vs not at runtime (through argument) rather than compile time probably. This is something to consider.
@andrewgazelka andrewgazelka added this to the 10k player event milestone Feb 22, 2025
@andrewgazelka andrewgazelka changed the title Make it easier to test Embedded proxy option Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant