update
This commit is contained in:
@@ -1904,8 +1904,8 @@ The proxy's http(s)/socks5/sps proxy function supports user-to-agent access via
|
||||
|
||||
### What can I do through the API?
|
||||
|
||||
- User dimension, which controls the single connection rate and controls the maximum number of connections.
|
||||
- IP dimension, which controls the single connection rate and controls the maximum number of connections.
|
||||
- User dimension, which controls the single connection rate and controls the maximum number of connections, max connections count per seconds (QPS).
|
||||
- IP dimension, which controls the single connection rate and controls the maximum number of connections, max connections count per seconds (QPS).
|
||||
- Dynamic upstream, can dynamically obtain its upstream from the API according to the user or client IP, and support http(s)/socks5/ss upstream.
|
||||
- Authenticate every connection, regardless of whether client authentication is required.
|
||||
- Cache authentication results, time can be set to reduce API pressure.
|
||||
@@ -1962,19 +1962,23 @@ if($ok){
|
||||
header("ipconns:2000");
|
||||
header("userrate:3000");
|
||||
header("iprate:8000");
|
||||
header("outgoing:http://127.0.0.1:3500?parent-type=tcp");
|
||||
header("userqps:5");
|
||||
header("ipqps:2");
|
||||
header("upstream:http://127.0.0.1:3500?parent-type=tcp");
|
||||
header("outgoing:1.1.1.1");
|
||||
header("HTTP/1.1 204 No Content");
|
||||
}
|
||||
```
|
||||
|
||||
#### Explanation
|
||||
userconns: The maximum number of connections for the user, not limited to 0 or not set this header.
|
||||
ipcons: The maximum number of connections for the user IP, not limited to 0 or not set this header.
|
||||
userrate: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header.
|
||||
iprate: The single TCP connection rate limit of the user IP, in bytes/second, not limited to 0 or not set this header.
|
||||
upstream: The upstream used, not empty, or not set this header.
|
||||
outgoing: The outgoing ip,this option only working which upstream is empty. And the IP must belong to the machine running proxy。
|
||||
#### HTTP HEADER Explanation
|
||||
`userconns`: The maximum number of connections for the user, not limited to 0 or not set this header.
|
||||
`ipcons`: The maximum number of connections for the user IP, not limited to 0 or not set this header.
|
||||
`userrate`: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header.
|
||||
`iprate`: The single TCP connection rate limit of the client IP, in bytes/second, not limited to 0 or not set this header.
|
||||
`userqps`: The maximum number of connections per second (QPS) for the user, not limited to 0 or not set this header.
|
||||
`ipqps`: The maximum number of connections per second (QPS) for the client IP, not limited to 0 or not set this header.
|
||||
`upstream`: The upstream used, not empty, or not set this header.
|
||||
`outgoing`: The outgoing ip,this option only working which upstream is empty. And the IP must belong to the machine running proxy。
|
||||
|
||||
#### Tips
|
||||
1. By default, `--auth-url` is required to provide the user name and password. If you do not need the client to provide the username and password, and authenticate, you can add `--auth-nouser`. The visit will still access the authentication address `--auth-url` for authentication. Only the $user authentication username and the $pass authentication password received in the php interface are empty when client didn't send username and password.
|
||||
|
||||
+13
-9
@@ -2060,8 +2060,8 @@ proxy的http(s)/socks5/sps代理功能,支持通过API控制用户对代理对
|
||||
|
||||
### 通过API可以干什么?
|
||||
|
||||
- 用户维度,控制单个连接速率,控制最大连接数。
|
||||
- IP维度,控制单个连接速率,控制最大连接数。
|
||||
- 用户维度,控制单个连接速率,控制最大连接数,控制连接的QPS。
|
||||
- IP维度,控制单个连接速率,控制最大连接数,控制连接的QPS。
|
||||
- 动态上级,可以根据用户或者客户端IP,动态的从API获取其上级,支持http(s)/socks5/ss上级。
|
||||
- 认证每一个连接,无论是否要求客户端认证。
|
||||
- 缓存认证结果,时间可以设置,减轻API压力。
|
||||
@@ -2119,20 +2119,24 @@ if($ok){
|
||||
header("ipconns:2000");
|
||||
header("userrate:3000");
|
||||
header("iprate:8000");
|
||||
header("userqps:5");
|
||||
header("ipqps:2");
|
||||
header("upstream:http://127.0.0.1:3500?parent-type=tcp");
|
||||
header("outgoing:1.1.1.1");
|
||||
header("HTTP/1.1 204 No Content");
|
||||
}
|
||||
```
|
||||
|
||||
#### 解释
|
||||
#### HTTP HEADER 头部字段解释
|
||||
|
||||
userconns:用户的最大连接数,不限制为0或者不设置这个头部。
|
||||
ipconns:用户IP的最大连接数,不限制为0或者不设置这个头部。
|
||||
userrate:用户的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
iprate:用户IP的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
upstream:使用的上级,没有为空,或者不设置这个头部。
|
||||
outgoing: 使用的出口IP,这个设置,只有在upstream为空的的时候才有效,这里设置的IP必须是proxy所在机器具有的IP。
|
||||
`userconns`:用户的最大连接数,不限制为0或者不设置这个头部。
|
||||
`ipconns`:IP的最大连接数,不限制为0或者不设置这个头部。
|
||||
`userrate`:用户的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
`iprate`:IP的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
`userqps`:用户每秒可以建立的最大连接数,不限制为0或者不设置这个头部。
|
||||
`ipqps`:IP每秒可以建立的最大连接数,不限制为0或者不设置这个头部。
|
||||
`upstream`:使用的上级,没有为空,或者不设置这个头部。
|
||||
`outgoing`: 使用的出口IP,这个设置,只有在upstream为空的的时候才有效,这里设置的IP必须是proxy所在机器具有的IP。
|
||||
|
||||
#### 提示
|
||||
|
||||
|
||||
+14
-10
@@ -1692,8 +1692,8 @@ The proxy's http(s)/socks5/sps proxy function supports user-to-agent access via
|
||||
|
||||
### What can I do through the API?
|
||||
|
||||
- User dimension, which controls the single connection rate and controls the maximum number of connections.
|
||||
- IP dimension, which controls the single connection rate and controls the maximum number of connections.
|
||||
- User dimension, which controls the single connection rate and controls the maximum number of connections, max connections count per seconds (QPS).
|
||||
- IP dimension, which controls the single connection rate and controls the maximum number of connections, max connections count per seconds (QPS).
|
||||
- Dynamic upstream, can dynamically obtain its upstream from the API according to the user or client IP, and support http(s)/socks5/ss upstream.
|
||||
- Authenticate every connection, regardless of whether client authentication is required.
|
||||
- Cache authentication results, time can be set to reduce API pressure.
|
||||
@@ -1750,19 +1750,23 @@ if($ok){
|
||||
header("ipconns:2000");
|
||||
header("userrate:3000");
|
||||
header("iprate:8000");
|
||||
header("outgoing:http://127.0.0.1:3500?parent-type=tcp");
|
||||
header("userqps:5");
|
||||
header("ipqps:2");
|
||||
header("upstream:http://127.0.0.1:3500?parent-type=tcp");
|
||||
header("outgoing:1.1.1.1");
|
||||
header("HTTP/1.1 204 No Content");
|
||||
}
|
||||
```
|
||||
|
||||
#### Explanation
|
||||
userconns: The maximum number of connections for the user, not limited to 0 or not set this header.
|
||||
ipcons: The maximum number of connections for the user IP, not limited to 0 or not set this header.
|
||||
userrate: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header.
|
||||
iprate: The single TCP connection rate limit of the user IP, in bytes/second, not limited to 0 or not set this header.
|
||||
upstream: The upstream used, not empty, or not set this header.
|
||||
outgoing: The outgoing ip,this option only working which upstream is empty. And the IP must belong to the machine running proxy。
|
||||
#### HTTP HEADER Explanation
|
||||
`userconns`: The maximum number of connections for the user, not limited to 0 or not set this header.
|
||||
`ipcons`: The maximum number of connections for the user IP, not limited to 0 or not set this header.
|
||||
`userrate`: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header.
|
||||
`iprate`: The single TCP connection rate limit of the client IP, in bytes/second, not limited to 0 or not set this header.
|
||||
`userqps`: The maximum number of connections per second (QPS) for the user, not limited to 0 or not set this header.
|
||||
`ipqps`: The maximum number of connections per second (QPS) for the client IP, not limited to 0 or not set this header.
|
||||
`upstream`: The upstream used, not empty, or not set this header.
|
||||
`outgoing`: The outgoing ip,this option only working which upstream is empty. And the IP must belong to the machine running proxy。
|
||||
|
||||
#### Tips
|
||||
1. By default, `--auth-url` is required to provide the user name and password. If you do not need the client to provide the username and password, and authenticate, you can add `--auth-nouser`. The visit will still access the authentication address `--auth-url` for authentication. Only the $user authentication username and the $pass authentication password received in the php interface are empty when client didn't send username and password.
|
||||
|
||||
@@ -1834,8 +1834,8 @@ proxy的http(s)/socks5/sps代理功能,支持通过API控制用户对代理对
|
||||
|
||||
### 通过API可以干什么?
|
||||
|
||||
- 用户维度,控制单个连接速率,控制最大连接数。
|
||||
- IP维度,控制单个连接速率,控制最大连接数。
|
||||
- 用户维度,控制单个连接速率,控制最大连接数,控制连接的QPS。
|
||||
- IP维度,控制单个连接速率,控制最大连接数,控制连接的QPS。
|
||||
- 动态上级,可以根据用户或者客户端IP,动态的从API获取其上级,支持http(s)/socks5/ss上级。
|
||||
- 认证每一个连接,无论是否要求客户端认证。
|
||||
- 缓存认证结果,时间可以设置,减轻API压力。
|
||||
@@ -1893,20 +1893,24 @@ if($ok){
|
||||
header("ipconns:2000");
|
||||
header("userrate:3000");
|
||||
header("iprate:8000");
|
||||
header("userqps:5");
|
||||
header("ipqps:2");
|
||||
header("upstream:http://127.0.0.1:3500?parent-type=tcp");
|
||||
header("outgoing:1.1.1.1");
|
||||
header("HTTP/1.1 204 No Content");
|
||||
}
|
||||
```
|
||||
|
||||
#### 解释
|
||||
#### HTTP HEADER 头部字段解释
|
||||
|
||||
userconns:用户的最大连接数,不限制为0或者不设置这个头部。
|
||||
ipconns:用户IP的最大连接数,不限制为0或者不设置这个头部。
|
||||
userrate:用户的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
iprate:用户IP的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
upstream:使用的上级,没有为空,或者不设置这个头部。
|
||||
outgoing: 使用的出口IP,这个设置,只有在upstream为空的的时候才有效,这里设置的IP必须是proxy所在机器具有的IP。
|
||||
`userconns`:用户的最大连接数,不限制为0或者不设置这个头部。
|
||||
`ipconns`:IP的最大连接数,不限制为0或者不设置这个头部。
|
||||
`userrate`:用户的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
`iprate`:IP的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。
|
||||
`userqps`:用户每秒可以建立的最大连接数,不限制为0或者不设置这个头部。
|
||||
`ipqps`:IP每秒可以建立的最大连接数,不限制为0或者不设置这个头部。
|
||||
`upstream`:使用的上级,没有为空,或者不设置这个头部。
|
||||
`outgoing`: 使用的出口IP,这个设置,只有在upstream为空的的时候才有效,这里设置的IP必须是proxy所在机器具有的IP。
|
||||
|
||||
#### 提示
|
||||
|
||||
|
||||
+6
-6
@@ -17,12 +17,6 @@
|
||||
<lastmod>2019-06-14T16:29:13+08:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://snail007.host900.com/goproxy/tags/cdn/</loc>
|
||||
<lastmod>2019-07-05T08:20:48+08:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://snail007.host900.com/goproxy/categories/</loc>
|
||||
<lastmod>2019-07-05T08:20:48+08:00</lastmod>
|
||||
@@ -47,6 +41,12 @@
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://snail007.host900.com/goproxy/tags/cdn/</loc>
|
||||
<lastmod>2019-07-05T08:20:48+08:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://snail007.host900.com/goproxy/tags/cloudflare/</loc>
|
||||
<lastmod>2019-07-05T08:20:48+08:00</lastmod>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
|
||||
<title>CDN - GOPROXY IN ACTION</title>
|
||||
<title>cdn - GOPROXY IN ACTION</title>
|
||||
|
||||
<link href="https://snail007.host900.com/goproxy/css/styles.css" rel="stylesheet">
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
|
||||
<header class="page-header">
|
||||
<h1>CDN</h1>
|
||||
<h1>cdn</h1>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>CDN on GOPROXY IN ACTION</title>
|
||||
<title>cdn on GOPROXY IN ACTION</title>
|
||||
<link>https://snail007.host900.com/goproxy/tags/cdn/</link>
|
||||
<description>Recent content in CDN on GOPROXY IN ACTION</description>
|
||||
<description>Recent content in cdn on GOPROXY IN ACTION</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>zh-CN</language>
|
||||
<lastBuildDate>Fri, 05 Jul 2019 08:20:48 +0800</lastBuildDate>
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
<item>
|
||||
<title>CDN</title>
|
||||
<title>cdn</title>
|
||||
<link>https://snail007.host900.com/goproxy/tags/cdn/</link>
|
||||
<pubDate>Fri, 05 Jul 2019 08:20:48 +0800</pubDate>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user