Giter Site home page Giter Site logo

Comments (13)

openspeedtest avatar openspeedtest commented on July 28, 2024 1

@klepptor No, You are correct. I never think about Sub Directory. I will fix this within two days. Thanks for posting the context.

from speed-test.

klepptor avatar klepptor commented on July 28, 2024 1

@openspeedtest

I just tested the new docker image:

in index.html you missed one absolute path:

<object style="visibility:hidden" id="OpenSpeedTest-UI" data="/assets/images/app.svg" type="image/svg+xml"></object>

Therefore, the JS in assets/js/app-2.5.4.min.js fails and the page isn't loaded any further.

Please check the JS for any absolute paths, as the up-/downloading paths aren't correct either.

app-2.5.4.min.js line 48: /upload /downloading

app-2.5.4.js line 671: /upload /downloading

darkmode.js line 4: href="/assets/css/darkmode.css"

from speed-test.

klepptor avatar klepptor commented on July 28, 2024 1

@openspeedtest Yeah, now it's working fine in my environment!

OpenSpeedTest docker in a subdir served by a reverse proxy/load balancer

Ah, one last thing: darkmode.css can't be loaded in index.html, line 8. Still an absolute path. ;)

Thx a lot for your amazing work!

from speed-test.

openspeedtest avatar openspeedtest commented on July 28, 2024

Yes, already someone mentioned this in an issue. I will do this in next update.

from speed-test.

mckaygerhard avatar mckaygerhard commented on July 28, 2024

witch commit is the solution to this issue?, you @openspeedtest just close with any reference!

from speed-test.

openspeedtest avatar openspeedtest commented on July 28, 2024

Not yet fixed the issue. Wait for the update. Or you can do it yourself on your deployment.
Edit css and index.html and remove first ''
For fonts and other assets.

from speed-test.

mckaygerhard avatar mckaygerhard commented on July 28, 2024

Not yet fixed the issue. Wait for the update. Or you can do it yourself on your deployment. Edit css and index.html and remove first '' For fonts and other assets.

thanks for the hints.. and please.. just closing as resolved but not resolved.. please accept MR or code suggestions event to just close the issue..

from speed-test.

klepptor avatar klepptor commented on July 28, 2024

Hi @openspeedtest

I really appreciate your work here!

Is there any PR underway for this? At least for docker it's quite annoying to change index.hml etc. ;)

from speed-test.

openspeedtest avatar openspeedtest commented on July 28, 2024

@klepptor Very soon. How will this affect docker? When binding domain name? Can you post your issue in more detail?
all static assets should be like 'css/app.css' instead of '/css/app.css' right. I thought this will only affect custom deployments.

from speed-test.

klepptor avatar klepptor commented on July 28, 2024

@openspeedtest

I need to deploy OpenSpeedTest in a subdir, e.g. http://myserver/speedtest

Therefore I'd like to use the docker version, behind a reverse proxy (Citrix ADC).

With absolute paths in index.html etc. most of the assets aren't loaded, but changing to relative paths in index.html etc is quite uncomfortable with docker, because you have to use volumes to get the changed files into the container. And you habve to do this again with every new version of OpenSpeedTest.

Or do I miss something here?

from speed-test.

openspeedtest avatar openspeedtest commented on July 28, 2024

@klepptor I updated Docker Image. Please check it and let me know if there is any problem.

from speed-test.

openspeedtest avatar openspeedtest commented on July 28, 2024

@klepptor hmm, Try now. Delete local image before run.

from speed-test.

openspeedtest avatar openspeedtest commented on July 28, 2024

Done! Test and look at browser console. Make sure everything working fine. Thanks
Warning! If you run it behind #4 (comment) you should increase post body content length to 35 Megabytes or more.

from speed-test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.