Skip to content

Commit 1735828

Browse files
committed
Initial commit
0 parents  commit 1735828

18 files changed

+789
-0
lines changed

.github/workflows/deploy.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.x
21+
cache: 'pip'
22+
23+
- run: |
24+
pip install -r requirements.txt
25+
mkdocs build
26+
env:
27+
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
28+
29+
- name: Deploy
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: site
34+
# cname: clash.watfaq.com
35+
force_orphan: true
36+
user_name: github-actions[bot]
37+
user_email: github-actions[bot]@users.noreply.github.com

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site/

LICENSE

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
Creative Commons Legal Code
2+
3+
CC0 1.0 Universal
4+
5+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12+
HEREUNDER.
13+
14+
Statement of Purpose
15+
16+
The laws of most jurisdictions throughout the world automatically confer
17+
exclusive Copyright and Related Rights (defined below) upon the creator
18+
and subsequent owner(s) (each and all, an "owner") of an original work of
19+
authorship and/or a database (each, a "Work").
20+
21+
Certain owners wish to permanently relinquish those rights to a Work for
22+
the purpose of contributing to a commons of creative, cultural and
23+
scientific works ("Commons") that the public can reliably and without fear
24+
of later claims of infringement build upon, modify, incorporate in other
25+
works, reuse and redistribute as freely as possible in any form whatsoever
26+
and for any purposes, including without limitation commercial purposes.
27+
These owners may contribute to the Commons to promote the ideal of a free
28+
culture and the further production of creative, cultural and scientific
29+
works, or to gain reputation or greater distribution for their Work in
30+
part through the use and efforts of others.
31+
32+
For these and/or other purposes and motivations, and without any
33+
expectation of additional consideration or compensation, the person
34+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35+
is an owner of Copyright and Related Rights in the Work, voluntarily
36+
elects to apply CC0 to the Work and publicly distribute the Work under its
37+
terms, with knowledge of his or her Copyright and Related Rights in the
38+
Work and the meaning and intended legal effect of CC0 on those rights.
39+
40+
1. Copyright and Related Rights. A Work made available under CC0 may be
41+
protected by copyright and related or neighboring rights ("Copyright and
42+
Related Rights"). Copyright and Related Rights include, but are not
43+
limited to, the following:
44+
45+
i. the right to reproduce, adapt, distribute, perform, display,
46+
communicate, and translate a Work;
47+
ii. moral rights retained by the original author(s) and/or performer(s);
48+
iii. publicity and privacy rights pertaining to a person's image or
49+
likeness depicted in a Work;
50+
iv. rights protecting against unfair competition in regards to a Work,
51+
subject to the limitations in paragraph 4(a), below;
52+
v. rights protecting the extraction, dissemination, use and reuse of data
53+
in a Work;
54+
vi. database rights (such as those arising under Directive 96/9/EC of the
55+
European Parliament and of the Council of 11 March 1996 on the legal
56+
protection of databases, and under any national implementation
57+
thereof, including any amended or successor version of such
58+
directive); and
59+
vii. other similar, equivalent or corresponding rights throughout the
60+
world based on applicable law or treaty, and any national
61+
implementations thereof.
62+
63+
2. Waiver. To the greatest extent permitted by, but not in contravention
64+
of, applicable law, Affirmer hereby overtly, fully, permanently,
65+
irrevocably and unconditionally waives, abandons, and surrenders all of
66+
Affirmer's Copyright and Related Rights and associated claims and causes
67+
of action, whether now known or unknown (including existing as well as
68+
future claims and causes of action), in the Work (i) in all territories
69+
worldwide, (ii) for the maximum duration provided by applicable law or
70+
treaty (including future time extensions), (iii) in any current or future
71+
medium and for any number of copies, and (iv) for any purpose whatsoever,
72+
including without limitation commercial, advertising or promotional
73+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74+
member of the public at large and to the detriment of Affirmer's heirs and
75+
successors, fully intending that such Waiver shall not be subject to
76+
revocation, rescission, cancellation, termination, or any other legal or
77+
equitable action to disrupt the quiet enjoyment of the Work by the public
78+
as contemplated by Affirmer's express Statement of Purpose.
79+
80+
3. Public License Fallback. Should any part of the Waiver for any reason
81+
be judged legally invalid or ineffective under applicable law, then the
82+
Waiver shall be preserved to the maximum extent permitted taking into
83+
account Affirmer's express Statement of Purpose. In addition, to the
84+
extent the Waiver is so judged Affirmer hereby grants to each affected
85+
person a royalty-free, non transferable, non sublicensable, non exclusive,
86+
irrevocable and unconditional license to exercise Affirmer's Copyright and
87+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
88+
maximum duration provided by applicable law or treaty (including future
89+
time extensions), (iii) in any current or future medium and for any number
90+
of copies, and (iv) for any purpose whatsoever, including without
91+
limitation commercial, advertising or promotional purposes (the
92+
"License"). The License shall be deemed effective as of the date CC0 was
93+
applied by Affirmer to the Work. Should any part of the License for any
94+
reason be judged legally invalid or ineffective under applicable law, such
95+
partial invalidity or ineffectiveness shall not invalidate the remainder
96+
of the License, and in such case Affirmer hereby affirms that he or she
97+
will not (i) exercise any of his or her remaining Copyright and Related
98+
Rights in the Work or (ii) assert any associated claims and causes of
99+
action with respect to the Work, in either case contrary to Affirmer's
100+
express Statement of Purpose.
101+
102+
4. Limitations and Disclaimers.
103+
104+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
105+
surrendered, licensed or otherwise affected by this document.
106+
b. Affirmer offers the Work as-is and makes no representations or
107+
warranties of any kind concerning the Work, express, implied,
108+
statutory or otherwise, including without limitation warranties of
109+
title, merchantability, fitness for a particular purpose, non
110+
infringement, or the absence of latent or other defects, accuracy, or
111+
the present or absence of errors, whether or not discoverable, all to
112+
the greatest extent permissible under applicable law.
113+
c. Affirmer disclaims responsibility for clearing rights of other persons
114+
that may apply to the Work or any use thereof, including without
115+
limitation any person's Copyright and Related Rights in the Work.
116+
Further, Affirmer disclaims responsibility for obtaining any necessary
117+
consents, permissions or other rights required for any use of the
118+
Work.
119+
d. Affirmer understands and acknowledges that Creative Commons is not a
120+
party to this document and has no duty or obligation with respect to
121+
this CC0 or use of the Work.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# watfaq.github.io

docs/config/full.md

+231
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
```yaml
2+
---
3+
port: 8888
4+
socks-port: 8889
5+
mixed-port: 8899
6+
7+
tun:
8+
enable: false
9+
device-id: "dev://utun1989"
10+
11+
dns:
12+
enable: true
13+
listen: 127.0.0.1:53553
14+
# udp: 127.0.0.1:53553
15+
# tcp: 127.0.0.1:53553
16+
# dot: 127.0.0.1:53554
17+
# doh: 127.0.0.1:53555
18+
19+
# ipv6: false # when the false, response to AAAA questions will be empty
20+
21+
# These nameservers are used to resolve the DNS nameserver hostnames below.
22+
# Specify IP addresses only
23+
default-nameserver:
24+
- 114.114.114.114
25+
- 8.8.8.8
26+
enhanced-mode: fake-ip
27+
fake-ip-range: 198.18.0.2/16 # Fake IP addresses pool CIDR
28+
# use-hosts: true # lookup hosts and return IP record
29+
30+
# Hostnames in this list will not be resolved with fake IPs
31+
# i.e. questions to these domain names will always be answered with their
32+
# real IP addresses
33+
# fake-ip-filter:
34+
# - '*.lan'
35+
# - localhost.ptlogin2.qq.com
36+
37+
# Supports UDP, TCP, DoT, DoH. You can specify the port to connect to.
38+
# All DNS questions are sent directly to the nameserver, without proxies
39+
# involved. Clash answers the DNS question with the first result gathered.
40+
nameserver:
41+
- 114.114.114.114 # default value
42+
- 1.1.1.1 # default value
43+
- tls://1.1.1.1:853 # DNS over TLS
44+
- https://1.1.1.1/dns-query # DNS over HTTPS
45+
# - dhcp://en0 # dns from dhcp
46+
47+
allow-lan: true
48+
mode: rule
49+
log-level: debug
50+
external-controller: 127.0.0.1:9090
51+
external-ui: "public"
52+
# secret: "clash-rs"
53+
experimental:
54+
ignore-resolve-fail: true
55+
56+
profile:
57+
store-selected: true
58+
store-fake-ip: false
59+
60+
61+
proxy-groups:
62+
- name: "relay"
63+
type: relay
64+
proxies:
65+
- "plain-vmess"
66+
- "ws-vmess"
67+
- "auto"
68+
- "fallback-auto"
69+
- "load-balance"
70+
- "select"
71+
- DIRECT
72+
73+
- name: "relay-one"
74+
type: relay
75+
use:
76+
- "file-provider"
77+
78+
- name: "auto"
79+
type: url-test
80+
use:
81+
- "file-provider"
82+
proxies:
83+
- DIRECT
84+
url: "http://www.gstatic.com/generate_204"
85+
interval: 300
86+
87+
- name: "fallback-auto"
88+
type: fallback
89+
use:
90+
- "file-provider"
91+
proxies:
92+
- DIRECT
93+
url: "http://www.gstatic.com/generate_204"
94+
interval: 300
95+
96+
- name: "load-balance"
97+
type: load-balance
98+
use:
99+
- "file-provider"
100+
proxies:
101+
- DIRECT
102+
strategy: round-robin
103+
url: "http://www.gstatic.com/generate_204"
104+
interval: 300
105+
106+
- name: select
107+
type: select
108+
use:
109+
- "file-provider"
110+
111+
- name: test 🌏
112+
type: select
113+
use:
114+
- "file-provider"
115+
proxies:
116+
- DIRECT
117+
118+
proxies:
119+
- name: plain-vmess
120+
type: vmess
121+
server: 10.0.0.13
122+
port: 16823
123+
uuid: b831381d-6324-4d53-ad4f-8cda48b30811
124+
alterId: 0
125+
cipher: auto
126+
udp: true
127+
skip-cert-verify: true
128+
- name: ws-vmess
129+
type: vmess
130+
server: 10.0.0.13
131+
port: 16824
132+
uuid: b831381d-6324-4d53-ad4f-8cda48b30811
133+
alterId: 0
134+
cipher: auto
135+
udp: true
136+
skip-cert-verify: true
137+
network: ws
138+
ws-opts:
139+
path: /api/v3/download.getFile
140+
headers:
141+
Host: www.amazon.com
142+
143+
- name: tls-vmess
144+
type: vmess
145+
server: 10.0.0.13
146+
port: 8443
147+
uuid: 23ad6b10-8d1a-40f7-8ad0-e3e35cd38297
148+
alterId: 0
149+
cipher: auto
150+
udp: true
151+
skip-cert-verify: true
152+
tls: true
153+
154+
- name: h2-vmess
155+
type: vmess
156+
server: 10.0.0.13
157+
port: 8444
158+
uuid: b831381d-6324-4d53-ad4f-8cda48b30811
159+
alterId: 0
160+
cipher: auto
161+
udp: true
162+
skip-cert-verify: true
163+
tls: true
164+
network: h2
165+
h2-opts:
166+
path: /ray
167+
168+
- name: vmess-altid
169+
type: vmess
170+
server: tw-1.ac.laowanxiang.com
171+
port: 153
172+
uuid: 46dd0dd3-2cc0-3f55-907c-d94e54877687
173+
alterId: 64
174+
cipher: auto
175+
udp: true
176+
network: ws
177+
ws-opts:
178+
path: /api/v3/download.getFile
179+
headers:
180+
Host: 5607b9d187e655736f563fee87d7283994721.laowanxiang.com
181+
- name: "ss-simple"
182+
type: ss
183+
server: 10.0.0.13
184+
port: 8388
185+
cipher: aes-256-gcm
186+
password: "password"
187+
udp: true
188+
- name: "trojan"
189+
type: trojan
190+
server: 10.0.0.13
191+
port: 9443
192+
password: password1
193+
udp: true
194+
# sni: example.com # aka server name
195+
alpn:
196+
- h2
197+
- http/1.1
198+
skip-cert-verify: true
199+
200+
proxy-providers:
201+
file-provider:
202+
type: file
203+
path: ./ss.yaml
204+
interval: 300
205+
health-check:
206+
enable: true
207+
url: http://www.gstatic.com/generate_204
208+
interval: 300
209+
210+
rule-providers:
211+
file-provider:
212+
type: file
213+
path: ./rule-set.yaml
214+
interval: 300
215+
behavior: domain
216+
217+
rules:
218+
- DOMAIN,ipinfo.io,relay
219+
- RULE-SET,file-provider,trojan
220+
- GEOIP,CN,relay
221+
- DOMAIN-SUFFIX,facebook.com,REJECT
222+
- DOMAIN-KEYWORD,google,select
223+
- DOMAIN,google.com,select
224+
- SRC-IP-CIDR,192.168.1.1/24,DIRECT
225+
- GEOIP,CN,DIRECT
226+
- DST-PORT,53,trojan
227+
- SRC-PORT,7777,DIRECT
228+
- MATCH, DIRECT
229+
...
230+
231+
```

0 commit comments

Comments
 (0)