-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy-proxy.example.yaml
More file actions
40 lines (34 loc) · 1.56 KB
/
Copy pathproxy-proxy.example.yaml
File metadata and controls
40 lines (34 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# proxy-proxy example config.
# Copy to proxy-proxy.yaml and fill in your real subscriptions and keys:
# cp proxy-proxy.example.yaml proxy-proxy.yaml
# --- optional server settings ---------------------------------------------
# listen: :8080 # HTTP listen address (change requires restart)
# user_agent: clash.meta/1.19.0 # UA sent to upstream providers
# timeout: 30s # upstream fetch timeout
# --- upstream subscriptions -----------------------------------------------
# Set exactly one source on each entry: `url` for HTTP(S), or `file` for a
# local filesystem path.
subs:
- url: https://provider-a.example.com/sub/xxxxxxxx
type: auto # auto | base64 | raw | clash (default: auto)
# refresh period: units s/sec, m/min, h/hr, d/day (e.g. 3h, 30min, 2hr, 1d, 1h30m; default 1h, min 1m)
interval: 3h
name: Provider A # optional; referenced by allowed_subs (defaults to the URL host)
- url: https://provider-b.example.com/clash.yaml
type: clash
interval: 1d
name: Provider B
# Local subscriptions use a filesystem path. The path is inside the process
# (for Docker, mount the file into the container first).
- file: /etc/proxy-proxy/local-subscription.txt
type: auto
interval: 1h
name: Local file
# --- downstream access keys -----------------------------------------------
# Users subscribe to: http://your-host:8080/sub?key=<key>
keys:
- key: pp-change-me-1
# no allowed_subs = this key sees ALL subs
- key: pp-change-me-2
allowed_subs: # names must match subs above
- Provider A