password
type
status
date
slug
summary
tags
category
Property
May 17, 2023 09:31 AM
URL
icon
在之前的容器云文章介绍中,我介绍了Doprax容器云搭建xray节点的流程。但是由于最近注册并使用Doprax搭建xray的用户太多,导致Doprax有些不太稳定。而Patr同样作为一个免费的容器云,也正好支持我们使用docker镜像搭建xray。在这期文章中,我来和大家一起在Patr容器云部署xray节点
推荐大家自己编译xray镜像,以便之后不被封号
准备材料
- 一枚邮箱(最好是大厂邮箱)
注意事项
文章仅供学习交流,请勿滥用此服务
部署步骤
- 打开Patr官网:https://patr.cloud/
- 点击“Try Patr for free”注册账号,如有账号请登录
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F403ca740-f769-4c6c-b0b9-115792e61a2e%2F20230118124756.png?table=block&id=4de09cda-e889-44ab-817b-19e4468c6dd7&t=4de09cda-e889-44ab-817b-19e4468c6dd7&width=700&cache=v2)
- 输入全名、用户名,邮箱及密码
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4c658aa0-3e9b-4bd5-8823-47735ac94a88%2F20230118124846.png?table=block&id=cc1996e6-5a39-4ee5-b1e4-24f443bd912d&t=cc1996e6-5a39-4ee5-b1e4-24f443bd912d&width=700&cache=v2)
- 检查邮件验证码并输入上来
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6d408382-44cb-41b5-9cb6-e7cf1ef00d6c%2F20230118125010.png?table=block&id=1a9ee0d1-4344-4da5-9843-e6eaae3163f9&t=1a9ee0d1-4344-4da5-9843-e6eaae3163f9&width=700&cache=v2)
- 依次点击“Infrastructure”→“Deployments”,点击“Create deployment”按钮
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc6f47120-421b-4058-b8b2-09946d1d9b12%2F20230118125230.png?table=block&id=3667be40-d7b4-4da9-81f5-1c0f2045af87&t=3667be40-d7b4-4da9-81f5-1c0f2045af87&width=700&cache=v2)
- 输入项目名称(别提到v2、v2ray、xray等一些明显字眼),来源选Docker Hub,镜像名输入
misakablog/xray-for-paas
,tag输入latest
,地区选新加坡(实测只有新加坡免费)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1c6ca948-0857-4460-84c1-617d189f6d32%2F20230118125322.png?table=block&id=5d378b8f-b41e-4c74-8753-690a36354480&t=5d378b8f-b41e-4c74-8753-690a36354480&width=700&cache=v2)
- http端口输入80,填写环境变量。变量说明如下表格所示。其余默认即可
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7c3ac627-12b2-4f79-a58b-9b06b05f4007%2F20230118125658.png?table=block&id=28b5e39f-d1a1-4237-84eb-c0b899f5490c&t=28b5e39f-d1a1-4237-84eb-c0b899f5490c&width=700&cache=v2)
- 按照下图配置
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd3e808de-dea5-4de9-93ec-ae5815e6f154%2F20230118125821.png?table=block&id=4783a062-4672-4dc0-bba0-b010ae55a761&t=4783a062-4672-4dc0-bba0-b010ae55a761&width=700&cache=v2)
- 等待创建。待创建成功之后点击“Public URL”。(更新:近期Patr好像服务器炸了,如果一直出现deploying也可以不用管他,照样进去,伪装网站能正常打开即可)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F54168c53-5a4a-4cf6-b776-45d0f258d92f%2F20230118125912.png?table=block&id=a820107a-84d7-4eea-adb2-3a1155f88b42&t=a820107a-84d7-4eea-adb2-3a1155f88b42&width=700&cache=v2)
- 复制粘贴这里提供的链接,备用
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff365bdb0-ef2a-4ba1-92b5-36a1d0335a8c%2F20230118125955.png?table=block&id=6414a2c6-115d-40d7-bd9d-50035eddeafd&t=6414a2c6-115d-40d7-bd9d-50035eddeafd&width=700&cache=v2)
- 节点配置如下:
Xray内核支持WebSocket的0RTT降低延迟功能,可在path路径末尾加上参数:?ed=2048,以激活该功能
由于Patr暂时不支持自定义域名,如遇域名被墙可使用cf wkr/pages反代
- 作者:李威俊
- 链接:https://vikim.cyou//article/patr-xray
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。