-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_config_proxy.yaml
More file actions
86 lines (82 loc) · 1.95 KB
/
Copy pathexample_config_proxy.yaml
File metadata and controls
86 lines (82 loc) · 1.95 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
proxy:
listener:
host: "0.0.0.0"
port: 3000
admin_listener:
host: "0.0.0.0"
port: 3001
locator:
type: in_process
backup_route_store:
type: filesystem
base_dir: target/cache
filename: backup.bin
compression: zstd1
localities:
- us
- de
locality_to_default_cell:
us: us1
control_plane:
url: http://127.0.0.1:8000
upstreams:
- name: us1-getsentry
url: "http://127.0.0.1:8080"
- name: us2-getsentry
url: "http://10.0.0.2:8080"
- name: de-getsentry
url: "http://10.0.0.3:8080"
- name: us1-conduit
url: "http://10.0.1.1:8080"
- name: us2-conduit
url: "http://10.0.1.2:8080"
- name: de-conduit
url: "http://10.0.1.3:8080"
routes:
- match:
host: us.sentry.io
path: /api/0/organizations/{organization}/*
action:
resolver: cell_from_organization
cell_to_upstream:
us1: us1-getsentry
us2: us2-getsentry
default: us1-getsentry
- match:
host: us.sentry.io
path: /organization-avatar/{organization}/{avatar_id}
action:
resolver: cell_from_organization
cell_to_upstream:
us1: us1-getsentry
us2: us2-getsentry
default: us1-getsentry
- match:
host: us.sentry.io
path: /api/0/cell/{cell_id}/*
action:
resolver: cell_from_id
cell_to_upstream:
us1: us1-getsentry
us2: us2-getsentry
- match:
host: de.sentry.io
action:
to: de-getsentry
- match:
host: conduit.us.sentry.io
path: /organizations/{organization}/*
action:
resolver: cell_from_organization
cell_to_upstream:
us1: us1-conduit
us2: us2-conduit
- match:
host: conduit.de.sentry.io
action:
to: de-conduit
# logging:
# sentry_dsn: "your_sentry_dsn_here"
metrics:
statsd_host: "127.0.0.1"
statsd_port: 8126