Skip to content

Commit a6d5d9c

Browse files
author
Alexander Malmström
committed
Fixed 'Network Error Check your network connection status.'
1 parent 9cce247 commit a6d5d9c

1 file changed

Lines changed: 21 additions & 10 deletions

File tree

modules/speedtestv2/files/speedtest.conf

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
server {
99
server_name _ localhost speedtest2.event.dreamhack.se;
10-
listen 80 http2 reuseport;
11-
listen 443 ssl http2 reuseport;
12-
listen [::]:80 http2 reuseport;
13-
listen [::]:443 ssl http2 reuseport;
10+
#listen 80 reuseport;
11+
listen 443 ssl reuseport;
12+
#listen [::]:80 reuseport;
13+
listen [::]:443 ssl reuseport;
1414
# If you like to Enable HTTP2 add "http2" to the above line.
1515
# If HTTP2 Enabled. Upload location should Proxy_Pass to http 1.1 port.
1616
# Otherwise you will see abnormal Upload Speeds.
@@ -74,12 +74,12 @@ server {
7474

7575
#HTTP2 & HTTP3 -> UPLOAD FIX -- START
7676

77-
location = /upload {
78-
proxy_pass http://127.0.0.1:80/dev-null;
79-
}
80-
location = /dev-null {
81-
return 200;
82-
}
77+
#location = /upload {
78+
# proxy_pass http://127.0.0.1:80/dev-null;
79+
#}
80+
#location = /dev-null {
81+
# return 200;
82+
#}
8383

8484
#HTTP2 & HTTP3 -> UPLOAD FIX -- END
8585

@@ -103,4 +103,15 @@ server {
103103
gzip_http_version 1.1;
104104
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
105105
}
106+
}
107+
108+
109+
server {
110+
listen 80 default_server;
111+
listen [::]:80 default_server;
112+
server_name _ localhost speedtest2.event.dreamhack.se;
113+
114+
location / {
115+
return 301 https://$host$request_uri;
116+
}
106117
}

0 commit comments

Comments
 (0)