Tweak layout of config examples

This commit is contained in:
James Lyne 2022-02-27 21:02:04 +00:00
parent 625e44a048
commit 0a48b44e4f

View File

@ -29,55 +29,69 @@
// By default LiveAtlas looks for a dynmap standalone/config.js file // By default LiveAtlas looks for a dynmap standalone/config.js file
// This configuration can be used instead to support Pl3xmap and Squaremap installations as well as multiple servers (external webserver required) // This configuration can be used instead to support Pl3xmap and Squaremap installations as well as multiple servers (external webserver required)
// To configure multiple servers, see https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers. // To configure multiple servers, see https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers.
// Example Squaremap internal webserver configuration
// servers: { // servers: {
// Squaremap internal webserver configuration // squaremap: {
// squaremap: { // squaremap: window.location.pathname
// squaremap: window.location.pathname // },
// }, // },
// Pl3xmap internal webserver configuration // Example Pl3xmap internal webserver configuration
// pl3xmap: { // servers: {
// pl3xmap: window.location.pathname // pl3xmap: {
// }, // pl3xmap: window.location.pathname
// },
// },
// Dynmap internal webserver configuration without using standalone/config.js // Example Overviewer configuration
// dynmap: { // servers: {
// dynmap: { // overviewer: {
// configuration: 'standalone/dynmap_config.json?_={timestamp}', // overviewer: window.location.pathname
// update: 'standalone/dynmap_{world}.json?_={timestamp}', // },
// sendmessage: 'standalone/sendmessage.php', // },
// login: 'standalone/login.php',
// register: 'standalone/register.php',
// tiles: 'tiles/',
// markers: 'tiles/'
// }
// },
// Multiple Dynmap servers on external webserver configuration // Example Dynmap internal webserver configuration without using standalone/config.js
// creative: { // servers: {
// label: 'Creative', // dynmap: {
// dynmap: { // dynmap: {
// configuration: 'http://dynmap.local/standalone/creative/MySQL_configuration.php', // configuration: 'standalone/dynmap_config.json?_={timestamp}',
// update: 'http://dynmap.local/standalone/creative/MySQL_update.php?world={world}&ts={timestamp}', // update: 'standalone/dynmap_{world}.json?_={timestamp}',
// sendmessage: 'http://dynmap.local/standalone/creative/MySQL_sendmessage.php', // sendmessage: 'standalone/sendmessage.php',
// login: 'http://dynmap.local/standalone/creative/MySQL_login.php', // login: 'standalone/login.php',
// register: 'http://dynmap.local/standalone/creative/MySQL_register.php', // register: 'standalone/register.php',
// tiles: 'http://dynmap.local/standalone/creative/MySQL_tiles.php?tile=', // tiles: 'tiles/',
// markers: 'http://dynmap.local/standalone/creative/MySQL_markers.php?marker=' // markers: 'tiles/'
// } // }
// }, // },
// survival: { // },
// label: 'Survival',
// dynmap: { // Example multiple Dynmap servers on external webserver configuration
// configuration: 'http://dynmap.local/standalone/survival/MySQL_configuration.php', // servers: {
// update: 'http://dynmap.local/standalone/survival/MySQL_update.php?world={world}&ts={timestamp}', // creative: {
// sendmessage: 'http://dynmap.local/standalone/survival/MySQL_sendmessage.php', // label: 'Creative',
// login: 'http://dynmap.local/standalone/survival/MySQL_login.php', // dynmap: {
// register: 'http://dynmap.local/standalone/survival/MySQL_register.php', // configuration: 'http://dynmap.local/standalone/creative/MySQL_configuration.php',
// tiles: 'http://dynmap.local/standalone/survival/MySQL_tiles.php?tile=', // update: 'http://dynmap.local/standalone/creative/MySQL_update.php?world={world}&ts={timestamp}',
// markers: 'http://dynmap.local/standalone/survival/MySQL_markers.php?marker=' // sendmessage: 'http://dynmap.local/standalone/creative/MySQL_sendmessage.php',
// } // login: 'http://dynmap.local/standalone/creative/MySQL_login.php',
// }, // register: 'http://dynmap.local/standalone/creative/MySQL_register.php',
// tiles: 'http://dynmap.local/standalone/creative/MySQL_tiles.php?tile=',
// markers: 'http://dynmap.local/standalone/creative/MySQL_markers.php?marker='
// }
// },
// survival: {
// label: 'Survival',
// dynmap: {
// configuration: 'http://dynmap.local/standalone/survival/MySQL_configuration.php',
// update: 'http://dynmap.local/standalone/survival/MySQL_update.php?world={world}&ts={timestamp}',
// sendmessage: 'http://dynmap.local/standalone/survival/MySQL_sendmessage.php',
// login: 'http://dynmap.local/standalone/survival/MySQL_login.php',
// register: 'http://dynmap.local/standalone/survival/MySQL_register.php',
// tiles: 'http://dynmap.local/standalone/survival/MySQL_tiles.php?tile=',
// markers: 'http://dynmap.local/standalone/survival/MySQL_markers.php?marker='
// }
// },
// }, // },
// These messages are used throughout LiveAtlas and can be translated here // These messages are used throughout LiveAtlas and can be translated here