-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-config.yaml
More file actions
68 lines (68 loc) · 1.38 KB
/
sample-config.yaml
File metadata and controls
68 lines (68 loc) · 1.38 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
# OpenTelemetry SDK
otel:
enabled: true
service_name: "serve"
service_version: "0.1.2"
collector:
endpoint: "" # if not provided, output will be discarded
protocol: grpc
attributes:
environment: dev
sentry:
dsn: "" # if not provided, output will be discarded
environment: dev
performance_monitoring: true
traces_sample_rate: 1.0
profiling_sample_rate: 0.5
# HTTP server
server:
port: 9090
cache: 3600
proxy_protocol: false
enable_spa: true
tls:
enabled: false
system_ca: true
cert: /etc/serve/tls/tls.crt
key: /etc/serve/tls/tls.key
custom_ca: []
csp:
enabled: true
allow_eval: false
report_only: true
report_to:
- /csp-reports
middleware:
gzip: 7
metadata:
headers:
- authorization
- x-api-key
- baggage
- sentry-trace
otel:
enabled: true
trace_header: "x-request-id"
cors:
max_age: 300
options_status_code: 200
allow_credentials: true
ignore_options: false
allowed_headers:
- authorization
- content-type
- x-api-key
- baggage
- sentry-trace
allowed_methods:
- get
- head
- post
- options
allowed_origins:
- "*"
exposed_headers:
- authorization
- x-api-key
- baggage
- sentry-trace