jpenilla / squaremap

squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style
https://modrinth.com/plugin/squaremap
Other
342 stars 41 forks source link

Only serve players.json through internal webserver #278

Closed NyaomiDEV closed 1 month ago

NyaomiDEV commented 2 months ago

I have an external webserver setup that is working with NGINX, however I'd like to have the internal server serving players.json as using the external server means that the file is flushed on disk every second or so. I could delay the flushing but it will make the map feel less "immersive and real time".

I'm therefore asking for a solution that is to never write the players.json file to disk and to serve it exclusively from the internal server, so that I can just reverse proxy to that and it would still work.

jpenilla commented 2 months ago

At first glance, this seems like a duplicate of #224 which is resolved by #245

NyaomiDEV commented 2 months ago

I don't know if that prevents the player.json to be written outright, because that's what I want. Also, I wanted a way to serve only that json in an API-like manner.

I also noticed that the PR is still a draft... sad

jpenilla commented 1 month ago

This is practically solved by #245, you can have the internal server enabled and only proxy the players json to it.