forked from ironsh/iron-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.yaml
More file actions
49 lines (43 loc) · 957 Bytes
/
Copy pathproxy.yaml
File metadata and controls
49 lines (43 loc) · 957 Bytes
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
41
42
43
44
45
46
47
48
49
dns:
listen: ":53"
proxy_ip: "172.20.0.2"
passthrough:
- "*.alpinelinux.org"
- "*.alpine.global"
proxy:
http_listen: ":80"
https_listen: ":443"
tls:
ca_cert: "/certs/ca.crt"
ca_key: "/certs/ca.key"
transforms:
- name: allowlist
config:
domains:
- "httpbin.org"
- "icanhazip.com"
cidrs:
- "172.20.0.0/24"
- name: secrets
config:
secrets:
- source:
type: env
var: OPENAI_API_KEY
replace:
proxy_value: "proxy-openai-abc123"
match_headers: ["Authorization"]
match_query: true
match_body: false
rules:
- host: "httpbin.org"
- source:
type: env
var: INTERNAL_TOKEN
proxy_value: "proxy-internal-tok"
match_headers: []
match_body: false
rules:
- host: "httpbin.org"
log:
level: "info"