Skip to content

index-classic.html ignores defined server list #841

Description

@saxophonicle

Description

index-classic.html doesn't get my server-list.json even though I have it in place per the documentation

Server

running on raspberry os inside docker container using alpine images

                //LIST OF TEST SERVERS. Leave empty if you're doing a standalone installation. See documentation for details
                var SPEEDTEST_SERVERS = [
                        /*{     //this server doesn't actually exist, remove it
                                name:"Example Server 1", //user friendly name for the server
                                server:"//test1.mydomain.com/", //URL to the server. // at the beginning will be replaced with http:// or https:// automatically
                                dlURL:"backend/garbage.php",  //path to download test on this server (garbage.php or replacement)
                                ulURL:"backend/empty.php",  //path to upload test on this server (empty.php or replacement)
                                pingURL:"backend/empty.php",  //path to ping/jitter test on this server (empty.php or replacement)
                                getIpURL:"backend/getIP.php"  //path to getIP on this server (getIP.php or replacement)
                        },
                        {       //this server doesn't actually exist, remove it
                                name:"Example Server 2", //user friendly name for the server
                                server:"//test2.example.com/", //URL to the server. // at the beginning will be replaced with http:// or https:// automatically
                                dlURL:"garbage.php",  //path to download test on this server (garbage.php or replacement)
                                ulURL:"empty.php",  //path to upload test on this server (empty.php or replacement)
                                pingURL:"empty.php",  //path to ping/jitter test on this server (empty.php or replacement)
                                getIpURL:"getIP.php"  //path to getIP on this server (getIP.php or replacement)
                        }*/
                        //add other servers here, comma separated
                ];

If I replace the above code with:

    var SPEEDTEST_SERVERS = "server-list.json";

Then the list loads as expected

The list loads if I set it to use the modern gui as well just fine (-e USE_NEW_DESIGN=true)

Client

any browser, don't get a drop down list of servers on classic

Steps to reproduce

  • try to use a list of servers with classic layout

Expected behaviour

list of server drop down list

Additional troubleshooting

# grep SPEEDTEST_SERVERS /entrypoint.sh
    sed -i "s/var SPEEDTEST_SERVERS = \"server-list.json\";/var SPEEDTEST_SERVERS = \"$SERVER_LIST_URL_ESCAPED\";/" /var/www/html/index-modern.html
    sed -i "s/var SPEEDTEST_SERVERS = \\[/var SPEEDTEST_SERVERS = \"$SERVER_LIST_URL_ESCAPED\";\\n\\t\\t\\/\\*/" /var/www/html/index-classic.html
    sed -i "s/var SPEEDTEST_SERVERS = \"server-list.json\";/var SPEEDTEST_SERVERS = \"$SERVER_LIST_URL_ESCAPED\";/" /var/www/html/stability.html

I believe the issue has something to do with this entrypoint sed line on classic

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions