-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpike.yml
41 lines (41 loc) · 920 Bytes
/
pike.yml
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
version: 4.0.4
admin:
user: vicanso
password: z6+5xIgzATEPuK5T8LL8/SLWI7HhZdm5OJ445xaHsX0=
compresses:
- name: compressCommon
levels:
br: 6
gzip: 6
remark: 通用压缩配置
caches:
- name: cacheCommon
size: 51200
hitForPass: 5m
store: badger:///tmp/badger
remark: 通用缓存配置
upstreams:
- name: upstreamTest
healthCheck: /ping
policy: roundRobin
servers:
- addr: http://test:3000
remark: 测试使用的upstream
locations:
- name: locationTest
upstream: upstreamTest
prefixes:
- /api
rewrites:
- /api/*:/$1
proxyTimeout: 30s
remark: 测试location
servers:
- logFormat: '{when-iso} {real-ip} {remote} {:proxyTarget} {host} {method} {uri} {proto} {status} {<x-status} {size-human} {referer} {userAgent}'
addr: :3015
locations:
- locationTest
cache: cacheCommon
compress: compressCommon
compressMinLength: 1kb
remark: 测试服务,监听地址:3015