File tree Expand file tree Collapse file tree
modules/speedtestv2/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88server {
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}
You can’t perform that action at this time.
0 commit comments