openspeedtest / Speed-Test

SpeedTest by OpenSpeedTest™ is a Free and Open-Source HTML5 Network Performance Estimation Tool Written in Vanilla Javascript and only uses built-in Web APIs like XMLHttpRequest (XHR), HTML, CSS, JS, & SVG. No Third-Party frameworks or libraries are Required. Started in 2011 and moved to OpenSpeedTest.com dedicated Project/Domain Name in 2013.

Home Page:https://openspeedtest.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option not to confirm quitting on MacOS

FawziD opened this issue · comments

Hi, using version 2.1.8 on MacOS Monterey server on MacPro 5,1.
My Mac is set to reboot daily but since installing OpenSpeedTest server it cannot. The App requests a Quit confirmation and blocks the reboot process.
I would like to see an option to enable/disable the quit confirmation request.

Thank you !

Apple rejected my first submission, and the Apple Human Interface team told me to add this. I think we can incorporate a feature like this. However, the OpenSpeedTest server for desktop and mobile is not designed for 24/7 operation. For that, you need to use Docker or Nginx. In your case, Nginx would be better. As far as I know, Docker works better on Linux.

Install Nginx on MacOS

brew install nginx

now copy https://github.com/openspeedtest/Speed-Test to /opt/homebrew/var/www and https://github.com/openspeedtest/Nginx-Configuration to /opt/homebrew/etc/nginx/servers/

This will use very few resources, provide better performance, and allow for 24/7 operation.

Screencast https://www.youtube.com/watch?v=fUtbXxNndXs

After installing Nginx using Homebrew, check the paths for www and servers directories. I noticed different paths on my Intel MacBook Pro and M1 Mac mini:

For M1 Mac mini (Apple Silicon):

  • /opt/homebrew/var/www
  • /opt/homebrew/etc/nginx/servers/

For X86 (Intel):

  • /usr/local/var/www
  • /usr/local/etc/nginx/servers/

To set up OpenSpeedTest:

  1. Install Homebrew.
  2. Install Nginx (run the command: brew install nginx).
  3. Navigate to /opt/homebrew/var/www, remove any existing files, and paste the files from this GitHub repository.
  4. Go to /opt/homebrew/etc/nginx/servers/ and paste OpenSpeedTest-Server.conf from ost-config.zip. (Use COMMAND+UP from the servers folder.)
  5. Go to /opt/homebrew/etc/nginx/ and paste nginx.conf from ost-config.zip.
  6. Restart Nginx by running brew services restart nginx.

You can download ost-config.zip from this link.