-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathapplication.yml
More file actions
150 lines (136 loc) · 3.48 KB
/
application.yml
File metadata and controls
150 lines (136 loc) · 3.48 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
info.app.name: @project.name@
info.app.artifact: @project.artifactId@
info.app.description: @project.description@
info.app.version: @project.version@
spring.main.banner-mode: "off"
api.cache-path: /cache
api.storage-path: /storage
api.api-key: API_KEY
server.port: 8080
server.compression.enabled: true
server.max-http-request-header-size: 16KB
# cors
cors:
enabled: false
mapping: "/cache/**"
allowedOrigins: "*"
allowedMethods: GET,POST
allowCredentials: true
# cache
cache:
monitoring:
enabled: false
intervalSec: 5
maxStartDelayJitterSec: 0
prefix: prebid_
expiry_sec: 300
timeout_ms: 300
clients_cache_duration: 86400
clients_cache_size: 1000
host_param_protocol: https
secondary_cache_timeout_ms: 5000
storage:
redis: {}
default-ttl-seconds: 300
# logging
logging.level.root: info
logging.config: classpath:log4j2-console.xml
sampling.rate: 0.01
# metrics
management:
graphite:
metrics:
export:
enabled: false
host: localhost
port: 2003
protocol: plaintext
step: 1m
tags-as-prefix:
- prefix
prefix: prebid
# circuit breaker
circuitbreaker:
failure_rate_threshold: 50
open_state_duration: 60000
closed_state_calls_number: 5
half_open_state_calls_number: 3
# endpoint actuators
management.health.defaults.enabled: false
management.endpoints.enabled-by-default: false
management.endpoints.web.base-path: /
management.health.diskspace.enabled: true
management.health.redis.enabled: false
management.endpoints.web.exposure.include: info, health, metrics, env, configprops
management.endpoint.info.enabled: true
management.endpoint.health.enabled: true
management.endpoint.metrics.enabled: true
management.endpoint.env.enabled: true
management.endpoint.configprops.enabled: true
management.endpoint.health.show-details: always
management.endpoint.shutdown.enabled: false
management.endpoint.configprops.keys-to-sanitize: password,secret,key,token,.*credentials.*,vcap_services
management.endpoint.info.cache.time-to-live: 5s
management.endpoint.health.cache.time-to-live: 5s
management.endpoint.metrics.cache.time-to-live: 5s
management.endpoint.env.cache.time-to-live: 5s
management.endpoint.configprops.cache.time-to-live: 5s
# undertow
server.undertow.buffer-size: 16384
server.undertow.direct-buffers: true
---
spring.config.activate.on-profile: manage
management.health.defaults.enabled: true
cors:
enabled: true
management:
graphite:
metrics:
export:
enabled: true
---
spring.config.activate.on-profile: local
cache.expiry_sec: 300
cache:
min_expiry: 15
max_expiry: 28800
allow_external_UUID: true
secondary_cache_path: "cache"
management:
graphite:
metrics:
export:
enabled: false
spring:
aerospike:
port: 3000
host: localhost
cores: 4
password:
first_backoff: 300
max_backoff: 1000
max_retry: 3
namespace: "prebid_cache"
prevent_UUID_duplication: true
socket_timeout: 30000
total_timeout: 1000
connect_timeout: 0
---
# dev
spring.config.activate.on-profile: dev
cache.expiry_sec: 28800
logging.level.root: debug
logging.config: classpath:log4j2-dev.xml
---
# qa
spring.config.activate.on-profile: qa
logging.level.root: info
logging.config: classpath:log4j2-qa.xml
---
# prod
spring.config.activate.on-profile: prod
management.endpoint.metrics.enabled: false
management.endpoint.env.enabled: false
management.endpoint.configprops.enabled: false
logging.level.root: warn
logging.config: classpath:log4j2-prod.xml