slp-server-rust icon indicating copy to clipboard operation
slp-server-rust copied to clipboard

disable graphql?

Open htynkn opened this issue 4 years ago • 8 comments

I try to setup a server. when I access ${ip}:11451, it shows a graphql page.

Is there any way to disable it if I don't want to use admin feature

htynkn avatar Apr 08 '20 03:04 htynkn

Same thinking

strikeru97 avatar Apr 12 '20 12:04 strikeru97

There are two possibilities that you can do right now.

  1. Make a fork and disable it by yourself in code.
  2. Use a reverse proxy to overwrite the path.

igromanru avatar Apr 16 '20 07:04 igromanru

Another way to do it is just block TCP port.... iptables -A INPUT -i eth0 -p tcp -m tcp --dport 11451 -j DROP

The whole program still working on UDP

EsteveSegura avatar Apr 19 '20 23:04 EsteveSegura

Another way to do it is just block TCP port.... iptables -A INPUT -i eth0 -p tcp -m tcp --dport 11451 -j DROP

The whole program still working on UDP

It's not a good solution, because you're blocking the information page this way.
The info page it pretty important to see how many people are online. e.g.: http://frog-skins.com:11451/info

igromanru avatar Apr 20 '20 06:04 igromanru

Another way to do it is just block TCP port.... iptables -A INPUT -i eth0 -p tcp -m tcp --dport 11451 -j DROP The whole program still working on UDP

It's not a good solution, because you're blocking the information page this way. The info page it pretty important to see how many people are online. e.g.: http://frog-skins.com:11451/info

You can still using in local, and showing up using another way.... a simple website, for example.

EsteveSegura avatar Apr 20 '20 11:04 EsteveSegura

using another way.... a simple website, for example.

I'm sure it's easier as setup an simple reverse proxy in front of it /s

igromanru avatar Apr 20 '20 15:04 igromanru

lan-play.com use the graphql server in order to request info and compute a good ping thanks to WebSockets And there is more info stored in graphql in the future .. like the number of players on each game etc :) so no please don't disable graphql for the queries. You shouldn't block graphql communication for all that purposes.

But I guess the playground page should be optional? And we should avoid mutations from any external connection? idk if it's already the case or not

GreatWizard avatar May 04 '20 10:05 GreatWizard

or make it accessible via password or something.
I heard space is working on an authentication, so it would be nice if it would be accessible via the same credentials.

igromanru avatar May 04 '20 11:05 igromanru