Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
7Sageer committed Oct 27, 2024
2 parents 1d8a1df + 3aaf076 commit d612bff
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-反馈.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug 反馈
about: 报告 bug 以帮助我们改进
title: ''
labels: ''
assignees: ''

---

## 问题描述
清晰简洁地描述 bug

## 环境信息
- 客户端类型(SingBox, Clash)
- 客户端版本:

## 原始节点信息:
使用适当的方式展示未进行订阅转换前的配置,注意脱敏。例如:
- 分享url
- Xray/SingBox/Clash 的配置文件

## 错误日志
可选,技术条件允许的话建议粘贴完整日志信息

## 复现步骤
1.
2.
3.

## 预期行为
描述你期望发生的事情

## 补充信息
添加任何其他有关问题的信息
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/使用问题.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: 使用问题
about: 寻求使用帮助
title: ''
labels: ''
assignees: ''

---

## 问题描述
描述你遇到的使用问题

## 环境信息
- 客户端类型(SingBox, Clash等)
- 客户端版本

## 原始节点信息:
使用适当的方式展示未进行订阅转换前的配置,注意脱敏。例如:
- 分享url
- Xray/SingBox/Clash 的配置文件

## 操作步骤
1.
2.
3.

## 预期行为
描述你期望发生的事情

## 尝试过的解决方案
描述你已经尝试过的解决方法
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/功能请求.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: 功能请求
about: 为项目提供建议
title: ''
labels: ''
assignees: ''

---

## 功能描述
描述你想要的功能

## 使用场景
描述这个功能会在什么场景下使用

## 可能的实现方案
可选,如果你有实现思路,请描述
19 changes: 18 additions & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## 部署

---

### 我不清楚如何部署

如果你没有 Cloudflare 账号或 Github 账号,请先注册。
Expand All @@ -12,12 +14,18 @@

根据提示点点点即可,你仅需手动填写 **Account ID****API token**,详见 [如何获取 Worker Account ID 和 API token?](#如何获取-worker-account-id-和-api-token)

---

### 如何获取 Worker Account ID 和 API token?

**获取 Worker Account ID**1. 打开 [Cloudflare Dashboard](https://dash.cloudflare.com/)
**获取 Worker Account ID**

1. 打开 [Cloudflare Dashboard](https://dash.cloudflare.com/)
2. 点击左侧的 **Workers 和 Pages**
3. 在右栏即可看到你的账户 ID

---

**获取 API token**

1. 打开 [Cloudflare API](https://dash.cloudflare.com/profile/api-tokens)
Expand All @@ -27,6 +35,9 @@

> 如果要使用自定义权限的令牌,注意在 Cloudflare API 中,**读取****编辑** 权限是分开的,**编辑** 权限不包含 **读取** 权限。因此请确保勾选 **编辑** 权限时,也将 **读取** 权限勾选。

---

### 为什么部署失败了?

1. 参考 [如何获取 Worker Account ID 和 API token?](#如何获取-worker-account-id-和-api-token) 确保获取的 Account ID 和 API token 正确,对于 API token,请确保拥有对应的权限。
Expand All @@ -35,12 +46,18 @@

3. 如果你认为上面两点都没有问题,那么请提交 Issue,并附上你的 Worker 的完整部署日志。

---

## 使用

---

### 我看到你的仓库更新了,我应该如何同步?

**你自己的**仓库主页面,点击右上角的 **Sync fork** 按钮,即可同步。

---

### 为什么生成的链接无法在国内访问?

Cloudflare Worker 的`workers.dev`域名默认无法在国内访问。
Expand Down
1 change: 1 addition & 0 deletions src/ProxyParsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { parseServerInfo, parseUrlParams, createTlsConfig, createTransportConfig

export class ProxyParser {
static parse(url) {
url = url.trim();
const type = url.split('://')[0];
switch(type) {
case 'ss': return new ShadowsocksParser().parse(url);
Expand Down

0 comments on commit d612bff

Please sign in to comment.