slp-server-rust
slp-server-rust copied to clipboard
disable graphql?
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
Same thinking
There are two possibilities that you can do right now.
- Make a fork and disable it by yourself in code.
- Use a reverse proxy to overwrite the path.
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
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
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 UDPIt'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.
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
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
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.