Skip to content

Conversation

ErrinDev
Copy link
Contributor

Added more detail to the Nginx section of SQL external web servers, clearing up some misconceptions I had, and can foresee others having.

This clarifies how to add multiple servers with live data.

Also a 1 letter fix to a typo in the community/PterodactylNginxProxy file. Changed usefull to useful

add info for if you have multiple servers, clearing up some confusion.
change usefull to useful, in the first info block

## NGINX
On nginx this can be achieved with e.g. `try_files $uri /sql.php;`.
On nginx this can be achieved with e.g. `try_files $uri /sql.php;`. This uses the SQL script to fetch the map tiles from your database.
Copy link
Member

@TBlueF TBlueF Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "SQL script" is misleading as it's actually a php-script called sql.php :D
Also isn't this just duplicated information from the entire section above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, fair point about it being a PHP script. I think it is useful to explain again here, since it shows people how that SQL.php translates into map tiles, and clarifies that it's only tiles, not live data.

I wonder if changing SQL to PHP in that sentence might clear things up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully my latest commit should resolve this ;)

Copy link
Member

@TBlueF TBlueF Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and clarifies that it's only tiles, not live data

That is actually not necessarily true. It's possible to tell bluemap to write player-positions and markers (the "live" data) into the database at an interval, and then that script fetches that as well. Additionally the script also reads things like player-head-icons from the database, or marker icons if they are saved to the map's asset storage by an addon ^^

But i think what you meant by it (-> it fetches map-data, not static webapp-files) is coming across. So i am fine with merging it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, forgot you can write all that to the database.

What do you think of my change to line 69? I was 50/50 on it, since it's not a normal setup, but matches the example below. I believe that TechnicJelle feels similarly, from our conversation in the discord yesterday.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk, both is fine i guess..

Most setups that end up in discord-support actually need 172.18.0.1 in all 3 proxy-pass examples because they just have multiple pterodactyl-containers but different ports for each server ..
But you can argue that there is no real point in having a network of servers if they are all on the same machine anyways, so whatever you choose, there is pro's and con's ^^

change "the SQL script" to "the PHP script"
@TBlueF TBlueF merged commit 9d160a2 into BlueMap-Minecraft:master Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants