linuxrun commited on
Commit
bff953c
·
verified ·
1 Parent(s): a274a38

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -38
README.md CHANGED
@@ -1,38 +1,13 @@
1
- # 说明
2
- 下方为默认UUID,可自行添加环境变量修改
3
- ```
4
- 25bef25c-cbe4-431b-93b6-b39aa11c0a7e
5
- ```
6
- # 部署
7
- https://huggingface.co 注册账号,新建space,名称随意,选择docker,空白项目,选择public公开项目,上传文件,除了README.md,其他文件都上传。
8
- 修改start.sh里的哪吒参数,不需要哪吒可忽略,自动部署。
9
-
10
- # 获取域名
11
- 域名形式:用户名-项目名.hf.space,例如我的用户名为aaa,项目名为bbb,那么域名为:aaa-bbb.hf.space。或者通过下图直接查看域名
12
- ![image](https://github.com/eoovve/Huggingface-ws/assets/142894633/3a8c246a-df46-4e3c-848a-f8730ac58766)
13
-
14
- # 节点配置如下
15
- ![image](https://github.com/eoovve/Huggingface-ws/assets/142894633/b97638ec-1f71-4859-89fd-1a21744e49ca)
16
-
17
- 可以利用cf的workers套cdn加速配合优选ip或优选域名使用,反代代码如下,替换第6行中的地址。
18
- ```
19
- export default {
20
- async fetch(request, env) {
21
- let url = new URL(request.url);
22
- if (url.pathname.startsWith('/')) {
23
- var arrStr = [
24
- 'aaaa.bbbbb.hf.space',
25
- ];
26
- url.protocol = 'https:'
27
- url.hostname = getRandomArray(arrStr)
28
- let new_request = new Request(url, request);
29
- return fetch(new_request);
30
- }
31
- return env.ASSETS.fetch(request);
32
- },
33
- };
34
- function getRandomArray(array) {
35
- const randomIndex = Math.floor(Math.random() * array.length);
36
- return array[randomIndex];
37
- }
38
- ```
 
1
+ title: Vless Proxy Service
2
+ emoji: 🚀
3
+ colorFrom: blue
4
+ colorTo: purple
5
+ sdk: docker
6
+ app_port: 7860
7
+ pinned: false
8
+ short_description: A Vless proxy service with Nezha monitoring support
9
+ tags:
10
+ - proxy
11
+ - vless
12
+ - networking
13
+ - monitoring