全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1220|回复: 18

新姿势HTTPUpgrade套cdn实测,很不错

[复制链接]
发表于 2024-3-29 10:37:14 | 显示全部楼层 |阅读模式
前2天发了个帖子,想找个HTTPUpgrade教程,没有,只能自己按官方文档配置了,效果还是很不错了,轻松10万+

 楼主| 发表于 2024-3-29 10:40:22 | 显示全部楼层
本帖最后由 uptime 于 2024-3-29 11:33 编辑

配置如下,server端:
  1. {
  2.   "log": {
  3.     "loglevel": "warning"
  4.   },
  5.   "inbounds": [
  6.     {
  7.       "port": 80,
  8.       "listen": "0.0.0.0",
  9.       "protocol": "vless",
  10.       "settings": {
  11.         "clients": [
  12.           {
  13.             "id": "abcdefg"
  14.           }
  15.         ],
  16.         "decryption": "none"
  17.       },
  18.       "streamSettings": {
  19.         "network": "httpupgrade",
  20.         "httpupgradeSettings": {
  21.           "acceptProxyProtocol": false,
  22.           "path": "/",
  23.           "host": "自己的域名",
  24.           "header": {
  25.             "type": "none"
  26.           }
  27.         }
  28.       }
  29.     }
  30.   ],
  31.   "outbounds": [
  32.     {
  33.       "protocol": "freedom",
  34.       "settings": {}
  35.     }
  36.   ]
  37. }
复制代码




客户端:
  1. {
  2.   "log": {
  3.     "loglevel": "warning"
  4.   },
  5.   "inbounds": [
  6.     {
  7.       "port": 1090,
  8.       "protocol": "dokodemo-door",
  9.       "settings": {
  10.         "network": "tcp,udp",
  11.         "followRedirect": true
  12.       },
  13.       "streamSettings": {
  14.         "sockopt": {
  15.           "tcpFastOpen": false,
  16.           "tproxy": "redirect"
  17.         }
  18.       }
  19.     }
  20.   ],
  21.   "outbounds": [
  22.     {
  23.       "protocol": "vless",
  24.       "settings": {
  25.         "vnext": [
  26.           {
  27.             "address": "cdn分配的域名",
  28.             "port": 443,
  29.             "users": [
  30.               {
  31.                 "id": "abcdefg",
  32.                 "encryption": "none"
  33.               }
  34.             ]
  35.           }
  36.         ]
  37.       },
  38.       "mux": {
  39.         "enabled": true,
  40.         "concurrency": 8
  41.       },
  42.       "streamSettings": {
  43.         "network": "httpupgrade",
  44.         "httpupgradeSettings": {
  45.           "acceptProxyProtocol": false,
  46.           "path": "/",
  47.           "host": "cdn分配的域名",
  48.           "header": {
  49.             "type": "none"
  50.           }
  51.         },
  52.         "security": "tls",
  53.         "tlsSettings": {
  54.           "serverName": "cdn分配的域名",
  55.           "allowInsecure": false
  56.         }
  57.       }
  58.     }
  59.   ]
  60. }
复制代码
发表于 2024-3-29 10:56:13 来自手机 | 显示全部楼层
这也是用来**cf的?
发表于 2024-3-29 10:58:32 | 显示全部楼层
等升级吧,既然piao了cf,我就懒得套tls了
发表于 2024-3-29 11:07:52 | 显示全部楼层
这个和ws什么区别啊
发表于 2024-3-29 11:17:56 | 显示全部楼层
Httpupgrade成ws?那也得支持ws的cdn是不
 楼主| 发表于 2024-3-29 11:18:59 | 显示全部楼层
本帖最后由 uptime 于 2024-3-29 11:32 编辑

@zhbbo 是的
@hostvps 比ws快
@jarmoku 等什么升级?
发表于 2024-3-29 11:24:27 | 显示全部楼层
没教程不会搞
发表于 2024-3-29 11:27:23 来自手机 | 显示全部楼层
试试看看新姿势
发表于 2024-3-29 14:51:27 | 显示全部楼层
uptime 发表于 2024-3-29 11:18
@zhbbo 是的
@hostvps 比ws快
@jarmoku 等什么升级?

目前xray 1.8.9 版本想要使用httpupgrade必须套tls,这是一个BUG
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-29 16:04 , Processed in 0.066050 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表