JLyne / LiveAtlas

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

Failed to load server configuration for 'survival' Error: Network request failed #629

Closed SqSeeCZ closed 1 year ago

SqSeeCZ commented 1 year ago

Hi I'm new in this and i need help. I'm configuration index.html and now website writing and I don't know how to repair. I'm using dynmap https://test.multi-craft.cz/ Failed to load server configuration for 'survival' Error: Network request failed

             servers: {
               creative: {
                 label: 'Creative',
                 dynmap: {
                     configuration: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_configuration.php',
                     update: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_update.php?world={world}&ts={timestamp}',
                     sendmessage: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_sendmessage.php',
                     login: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_login.php',
                     register: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_register.php',
                     tiles: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_tiles.php?tile=',
                     markers: 'http://node-01.multi-craft.cz:25573/standalone/creative/MySQL_markers.php?marker='
                 }
               },
               survival: {
                 label: 'Survival',
                 dynmap: {
                     configuration: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_configuration.php',
                     update: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_update.php?world={world}&ts={timestamp}',
                     sendmessage: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_sendmessage.php',
                     login: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_login.php',
                     register: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_register.php',
                     tiles: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_tiles.php?tile=',
                     markers: 'http://play.mc-mystiq.cz:18470/standalone/survival/MySQL_markers.php?marker='
                 }
               },
             },
SqSeeCZ commented 1 year ago

dynmap configuration configuration.txt

JLyne commented 1 year ago

At a glance there are 2 problems:

  1. You have configured dynmap to use its internal webserver, but have configured LiveAtlas with standalone URLs that only make sense for an external webserver. For the internal webserver your configuration should look more like the below. Double check this with web/standalone/config.js in your dynmap folder though.
servers: {
    creative: {
        label: 'Creative',
        dynmap: {
            configuration: 'http://node-01.multi-craft.cz:25573/up/configuration',
            update: 'http://node-01.multi-craft.cz:25573/up/world/{world}/{timestamp}',
            sendmessage: 'http://node-01.multi-craft.cz:25573/up/sendmessage',
            login: 'http://node-01.multi-craft.cz:25573/up/login',
            register: 'http://node-01.multi-craft.cz:25573/up/register',
            tiles: 'http://node-01.multi-craft.cz:25573/tiles/',
            markers: 'http://node-01.multi-craft.cz:25573/tiles/'
        }
    },
    survival: {
        label: 'Survival',
        dynmap: {
            configuration: 'http://play.mc-mystiq.cz:18470/up/configuration',
            update: 'http://play.mc-mystiq.cz:18470/up/world/{world}/{timestamp}',
            sendmessage: 'http://play.mc-mystiq.cz:18470/up/sendmessage',
            login: 'http://play.mc-mystiq.cz:18470/up/login',
            register: 'http://play.mc-mystiq.cz:18470/up/register',
            tiles: 'http://play.mc-mystiq.cz:18470/tiles/',
            markers: 'http://play.mc-mystiq.cz:18470/up/tiles/'
        }
    },
},
  1. LiveAtlas is being served via HTTPS, but the configured map URLs are not. Modern browsers will not allow this. You will need to find a way to make the map URLs accessible via HTTPS. Reverse-proxying is likely the best approach but I'm afraid I cannot help you with that.
SqSeeCZ commented 1 year ago

I'm have server on VPS and i using nginx LiveAtlas and Pterodactyl Minecraft server Dynmap using MySQL Will what you wrote work?

SqSeeCZ commented 1 year ago

I'm now have with SSL https://mapy.multi-craft.cz/