Giter VIP home page Giter VIP logo

Comments (11)

openspeedtest avatar openspeedtest commented on June 10, 2024

Server.
Server Requirements :
Nginx, Apache, IIS, Express, or Any Web server that supports HTTP/1.1.

Accept, GET, POST, HEAD & OPTIONS, Response 200 OK.

Accept, POST to Static Files, Response 200 OK.

Timeout greater than 60 seconds.

Disable Access logs for Increasing server performance.

Improve Time to First Byte (TTFB)

Follow our Nginx Config.

from speed-test.

openspeedtest avatar openspeedtest commented on June 10, 2024

look at the browser console,
Post request is not handled properly by your server.
Make sure you enabled post to static files and post body content 35+ Mb.. https://github.com/openspeedtest/Nginx-Configuration

from speed-test.

openspeedtest avatar openspeedtest commented on June 10, 2024

Did you try the community plugin? It's available for TrueNas Core and Scale. It's ready to use, No manual configuration needed.

from speed-test.

GJSchaller avatar GJSchaller commented on June 10, 2024

I did, but it posed two challenges: 1) It's an additional Jail that consumes resources when I have a Caddy server / jail already running, and 2) I was having challenges setting it up behind a reverse proxy to be able to see it from the public internet. My solution was to host it on my already public-facing Caddy server, since I could just point a subdomain to it. The challenge at this point is figuring out how to configure Caddy to work with OpenSpeedTest properly. I have a forum thread open on the Caddy community, but haven't gotten much traction yet. https://caddy.community/t/configuring-caddy-for-openspeedtest/16863

from speed-test.

openspeedtest avatar openspeedtest commented on June 10, 2024

Personally i never used Caddy. And this is a configuration error. I will post a guide and send you an update if i got some time to play with Caddy. so i am closing this issue for now. because this is not an issue with speed test script itself. it is behaving the way it is designed.

from speed-test.

GJSchaller avatar GJSchaller commented on June 10, 2024

Would it be possible to take a look at https://caddy.community/t/configuring-caddy-for-openspeedtest/16863 and help them with the requirements needed to run OpenSpeedTest? They're not familiar with it, so I am hoping the two groups working together can help resolve this and make it more accessible to more users. Thank you!

from speed-test.

openspeedtest avatar openspeedtest commented on June 10, 2024

@GJSchaller

Turn off GZip for " Downloading " and " Upload " files.
Enable post to Static file for " Upload " File or location.
If you enable HTTP2 or 3 you need to proxy pass upload request to an HTTP 1.1 location. Otherwise server will not wait for post body content and return 200. You will see huge upload speed numbers like this. Disable http 2 or 3 and stick with 1.1 or proxy_pass to 1.1 location.
We make losts of requests during test. So it's better if you disable acess logs. (Save disk io and cpu cycles) .

Within few days I will test Cady with Openspeedtest and send you an update.

from speed-test.

GJSchaller avatar GJSchaller commented on June 10, 2024

That's wonderful, thank you! (I will be out of town for a week, so I may be slow to reply, but this is very appreciated.)

from speed-test.

openspeedtest avatar openspeedtest commented on June 10, 2024

I try caddy, but it's not easy to write rules like Nginx. So i think running openspeedtest jail behind caddy is better option. In that jail all we installed is Nginx. So it will not consume much resources. Even docker version consume only 4 to 10 Mb ram. I may need to spend more time with caddy to understand how it works. For now i am busy with some backend stuff. See you later.

from speed-test.

openspeedtest avatar openspeedtest commented on June 10, 2024

Check #67
Should work.
You need jail or docker behind caddy.

         reverse_proxy http://localhost:3000 {
         buffer_requests
         buffer_responses
         flush_interval -1
         max_buffer_size 35MiB
        }

Caddy’s file server doesn’t support file uploads. If you want to upload files, you’ll need to use another tool (and you can put Caddy as a proxy in front of it).

https://caddy.community/t/how-to-upload-a-file-via-post-and-with-auth/12279/2

from speed-test.

GJSchaller avatar GJSchaller commented on June 10, 2024

Thank you! This seems to work well... I'm not getting results that are orders of magnitude off any more. I need to test more thoroughly when I am home and not at work, but this looks to have helped!

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.