Update nginx.conf
Browse files- nginx.conf +1 -15
nginx.conf
CHANGED
|
@@ -11,7 +11,7 @@ server {
|
|
| 11 |
return 200 '{"status":"success","result":"nginx json"}';
|
| 12 |
}
|
| 13 |
|
| 14 |
-
location /
|
| 15 |
root /opt/file;
|
| 16 |
autoindex on;
|
| 17 |
add_header x-url $arg_url;
|
|
@@ -24,19 +24,5 @@ server {
|
|
| 24 |
proxy_ssl_server_name on;
|
| 25 |
proxy_ssl_verify off;
|
| 26 |
}
|
| 27 |
-
|
| 28 |
-
location /api/ip {
|
| 29 |
-
proxy_pass https://api.nn.ci/ip;
|
| 30 |
-
add_header x-url $arg_url;
|
| 31 |
-
proxy_http_version 1.1;
|
| 32 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 33 |
-
proxy_set_header Connection 'upgrade';
|
| 34 |
-
proxy_cache_bypass $http_upgrade;
|
| 35 |
-
proxy_read_timeout 86400;
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
location / {
|
| 39 |
-
return 401;
|
| 40 |
-
}
|
| 41 |
|
| 42 |
}
|
|
|
|
| 11 |
return 200 '{"status":"success","result":"nginx json"}';
|
| 12 |
}
|
| 13 |
|
| 14 |
+
location / {
|
| 15 |
root /opt/file;
|
| 16 |
autoindex on;
|
| 17 |
add_header x-url $arg_url;
|
|
|
|
| 24 |
proxy_ssl_server_name on;
|
| 25 |
proxy_ssl_verify off;
|
| 26 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
}
|