openspeedtest / Nginx-Configuration

Nginx-Configuration for OpenSpeedTest Server
31 stars 14 forks source link

Upload speed is weird #5

Closed tarokeitaro closed 6 months ago

tarokeitaro commented 11 months ago

i use nginx for this. here is the screenshot. am i wrong? image

image

openspeedtest commented 11 months ago

Yes, add client_max_body_size 35m; & error_page 405 =200 $uri; use this configuration https://github.com/openspeedtest/Nginx-Configuration/blob/main/OpenSpeedTest-Server.conf

tarokeitaro commented 11 months ago

i set client_max_body_size 35m; and error_page 405 =200 $uri; but it gets weirder image

openspeedtest commented 11 months ago

What is your protocol? You should use HTTP/1.1. If you want to use HTTP/2 or HTTP/3, you need to proxypass the upload path. This is clearly mentioned in the Nginx configuration. Please take a look at my Nginx configuration or simply replace your configuration with mine.

KonRay commented 11 months ago

Yes, add client_max_body_size 35m; & error_page 405 =200 $uri; use this configuration https://github.com/openspeedtest/Nginx-Configuration/blob/main/OpenSpeedTest-Server.conf

Sorry to bother you. I'm new to docker and all the staff. Where do I need to update those parameters? Thanks

openspeedtest commented 11 months ago

@KonRay If you are using the Docker image, you do not need to make any changes. Simply run the image, and it will function without any issues. If you are creating your own image, use the posted Nginx configuration. If you need to place the OpenSpeedTest Server behind a reverse proxy, you may need to make additional configuration changes to the reverse proxy, depending on the specific reverse proxy you are using. This may include increasing the post body content length or choose HTTP/1.1 for OpenSpeedTest. Let me know more details about your issue.

KonRay commented 11 months ago

@openspeedtest Thanks for your reply. I use your docker image behind Nginx Proxy and my speed results are different compared to a test via IP address. I found in your documentation that post-body content length needs to be changed to 35 megabytes. Is it possible to set this parameter via YAML config? So it doesn't get lost every time I rebuild the project.

openspeedtest commented 10 months ago

@KonRay Look at the Nginx Proxy Manager Documentation. It depends on the proxy.

openspeedtest commented 6 months ago

check this post https://github.com/openspeedtest/Nginx-Configuration/issues/9 No special config needed.