JLyne / LiveAtlas

A Dynmap, Squaremap, Pl3xmap and Overviewer frontend for the modern web
Apache License 2.0
336 stars 37 forks source link

Multiple servers setup failing with Pl3xmap and Dynmap, working with squaremap and Overviewer #634

Open Roan-V opened 10 months ago

Roan-V commented 10 months ago

In the progress of setting up a Multiple Servers instance, followed the instructions at https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers

Have a Pl3xmap, squaremap, Overviewer and Dynmap server that I'm trying to also show on a LiveAtlas instance. I run a Caddy webserver that hosts all files for the individual maps and the LiveAtlas instance, all of the individual maps are publicly accessible (through https)

Got it mostly set up, LiveAtlas is accessible and server switching works, squaremap and Overviewer are accessible without issues. But am currently stuck on specifically Pl3xmap and Dynmap having issues.

Pl3xmap throws a Failed to load server configuration for 'Pl3xMap' No current world error. and Dynmap a Failed to load server configuration for 'Dynmap' Error: Request returned invalid json error Skimming through the browser console it looks like Pl3xmap is also failing on loading its json files.

I'm thinking there is something misconfigured in my webserver forwarding specifically those files, the gz encoding by Pl3xmap for example? Grasping at straws here, and I made it harder for myself by using Caddy which is not included in the example on the wiki :P

LiveAtlas url: https://map.roanv.nl/LiveAtlas Individual maps are accessible through this page: https://map.roanv.nl/

The multiserver part of the LiveAtlas index.html: ```html servers: { Pl3xMap: { label: 'Pl3xMap', pl3xmap: 'https://map.roanv.nl/pl3xmap/' }, squaremap: { label: 'squaremap', squaremap: 'https://map.roanv.nl/squaremap/' }, Overviewer: { label: 'Overviewer', overviewer: 'https://map.roanv.nl/overviewer/' }, Dynmap: { label: 'Dynmap', dynmap: { configuration: 'https://map.roanv.nl/dynmap/standalone/MySQL_configuration.php', update: 'https://map.roanv.nl/dynmap/standalone/MySQL_update.php?world={world}&ts={timestamp}', sendmessage: 'https://map.roanv.nl/dynmap/standalone/MySQL_sendmessage.php', login: 'https://map.roanv.nl/dynmap/standalone/MySQL_login.php', register: 'https://map.roanv.nl/dynmap/standalone/MySQL_register.php', tiles: 'https://map.roanv.nl/dynmap/standalone/MySQL_tiles.php?tile=', markers: 'https://map.roanv.nl/dynmap/standalone/MySQL_markers.php?marker=' } } }, ```
Caddyfile part pertaining to LiveAtlas: ``` handle_path /LiveAtlas/* { root * /mnt/data/LiveAtlas/ try_files {uri} /index.html file_server } ```
Roan-V commented 9 months ago

I tried running Pl3xmap with a normal LiveAtlas gui today (non multiple servers)

Apparently Pl3xmap V2 just doesn't work at all with LiveAtlas currently, so that explains the Failed to load server configuration for 'pl3xmap' No current world error for Pl3xmap. Question for Dynmap still stands though