webbukkit / dynmap

A set of Minecraft mods that provide a real time web-based map system for various Minecraft server implementations.
https://www.reddit.com/r/Dynmap/
Apache License 2.0
2.07k stars 424 forks source link

separate path for json files #1541

Closed timriker closed 5 years ago

timriker commented 10 years ago

Mike, as we discussed on irc:

When not using stand alone, json files are in the same directory as the php files. It would be nice to have the json files written in dynmap/web/json/ instead of dynmap/web/standalone/ by both the dynmap plugin and the webchat server side. This would allow linking that directory to a ram drive on platforms that support it.

I'd have an init script or run-on-reboot cronjob do this as root:

# mkdir /run/dynmap
# chown www-data:www-data /run/dynmap

then link dynmap/web/json to /run/dynmap or change a configuration.txt value to point there which both the plugin and the web interface would need to adjust. The symlink version avoids running a php script and can be just static files as the path is still there.

now all json writes for player postition, webchat, etc are just hitting /run which is tmpfs and stays in memory. True even for non-login setups.

Feature for advanced users to be sure, but should be relatively easy to implement.

timriker commented 5 years ago

This is closed, but was it accepted and implemented, or rejected?

Psy-Virus commented 5 years ago

Hover over the "Listed Feature" label.

It will be listed in a separate issue. So we have a consolidation of features and not everything spread over 700 open issues.