Speed-Test icon indicating copy to clipboard operation
Speed-Test copied to clipboard

Openspeedtest with TLS reverse proxy.

Open tuapuikia opened this issue 1 year ago • 3 comments

Hi, I need some advice. I set up an Nginx reverse proxy with HTTPS and HTTP frontends, and I proxy-pass to an openspeedtest container. I noticed that the bandwidth to the Nginx HTTPS site is 3 times slower than the HTTP site. I enabled kTLS, but it didn't help at all.

tuapuikia avatar Aug 02 '23 15:08 tuapuikia

Can you post your Nginx config? Did you checked ENABLE_LETSENCRYPT option in docker image?

version: '3.3'
services:
    speedtest:
       environment:
           - ENABLE_LETSENCRYPT=True
           - DOMAIN_NAME=speedtest.yourdomain.com
           - [email protected]
       restart: unless-stopped
       container_name: openspeedtest
       ports:
            - '80:3000'
            - '443:3001'
       image: openspeedtest/latest

openspeedtest avatar Aug 02 '23 23:08 openspeedtest

Nginx HTTPS site is 3 times slower than the HTTP site Also Try HTTP1.1

openspeedtest avatar Aug 02 '23 23:08 openspeedtest

Nginx HTTPS site is 3 times slower than the HTTP site Also Try HTTP1.1

I found the root cause of the bottleneck. My server CPU is too old to handle the TLS encryption.

tuapuikia avatar Aug 03 '23 09:08 tuapuikia