Skip to content

Commit 9345c6a

Browse files
author
Samuel Alejandro Maldonado Garcia
committed
ready for review
1 parent c78d1c6 commit 9345c6a

File tree

14 files changed

+629
-288
lines changed

14 files changed

+629
-288
lines changed
56.8 MB
Binary file not shown.

sample/configs/prebid-config.yaml

Lines changed: 337 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,197 @@
11
status-response: "ok"
2+
3+
spring:
4+
main:
5+
banner-mode: "off"
6+
7+
# Configuración de valores por defecto para adaptadores
8+
adapter-defaults:
9+
enabled: false
10+
ortb-version: "2.5"
11+
ortb:
12+
multiformat-supported: true
13+
pbs-enforces-ccpa: true
14+
modifying-vast-xml-allowed: true
15+
debug:
16+
allow: true
17+
18+
# Configuración de Vert.x
19+
vertx:
20+
worker-pool-size: 20
21+
uploads-dir: file-uploads
22+
init-timeout-ms: 5000
23+
enable-per-client-endpoint-metrics: false
24+
25+
# Configuración de métricas
26+
metrics:
27+
prefix: prebid
28+
jmx:
29+
enabled: false
30+
31+
# URL externa (requerida por algunos bidders)
32+
external-url: http://localhost:8080
33+
34+
# Configuración de identificación del servidor
35+
host-id: localhost
36+
datacenter-region: local
37+
vendor: local
38+
system: system
39+
sub-system: subSystem
40+
infra: infra
41+
data-center: dataCenter
42+
profile: profile
43+
44+
# Configuración de host-cookie (IMPORTANTE: esta configuración faltaba)
45+
host-cookie:
46+
opt-out-url: http://prebid.org/optout
47+
opt-in-url: http://prebid.org/optin
48+
ttl-days: 90
49+
max-cookie-size-bytes: 4096
50+
51+
# Configuración de IPv6 (requerida para ipAddressHelper)
52+
ipv6:
53+
always-mask-right: 56
54+
anon-left-mask-bits: 56
55+
private-networks: "fc00::/7,fe80::/10,::1/128"
56+
57+
# Configuración de CCPA (California Consumer Privacy Act)
58+
ccpa:
59+
enforce: true
60+
61+
# Configuración completa de GDPR
62+
gdpr:
63+
enabled: true
64+
default-value: 0
65+
eea-countries: "at,bg,be,cy,cz,dk,ee,fi,fr,de,gr,hu,ie,it,lv,lt,lu,mt,nl,pl,pt,ro,sk,si,es,se,gb,is,no,li"
66+
vendorlist:
67+
default-timeout-ms: 2000
68+
v2:
69+
http-endpoint-template: "https://vendor-list.consensu.org/v2/archives/vendor-list-v{VERSION}.json"
70+
refresh-missing-list-period-ms: 3600000
71+
cache-dir: /var/tmp/vendor2
72+
deprecated: false
73+
retry-policy:
74+
exponential-backoff:
75+
delay-millis: 100
76+
max-delay-millis: 1000
77+
factor: 2.0
78+
jitter: 0.1
79+
v3:
80+
http-endpoint-template: "https://vendor-list.consensu.org/v3/archives/vendor-list-v{VERSION}.json"
81+
refresh-missing-list-period-ms: 3600000
82+
cache-dir: /var/tmp/vendor3
83+
deprecated: false
84+
retry-policy:
85+
exponential-backoff:
86+
delay-millis: 100
87+
max-delay-millis: 1000
88+
factor: 2.0
89+
jitter: 0.1
90+
purposes:
91+
p1:
92+
enforce-purpose: full
93+
enforce-vendors: true
94+
p2:
95+
enforce-purpose: full
96+
enforce-vendors: true
97+
p3:
98+
enforce-purpose: full
99+
enforce-vendors: true
100+
p4:
101+
enforce-purpose: full
102+
enforce-vendors: true
103+
p5:
104+
enforce-purpose: full
105+
enforce-vendors: true
106+
p6:
107+
enforce-purpose: full
108+
enforce-vendors: true
109+
p7:
110+
enforce-purpose: full
111+
enforce-vendors: true
112+
p8:
113+
enforce-purpose: full
114+
enforce-vendors: true
115+
p9:
116+
enforce-purpose: full
117+
enforce-vendors: true
118+
p10:
119+
enforce-purpose: full
120+
enforce-vendors: true
121+
special-features:
122+
sf1:
123+
enforce: true
124+
sf2:
125+
enforce: true
126+
127+
# Configuración de LMT (Limit Ad Tracking)
128+
lmt:
129+
enforce: true
130+
131+
# Configuración completa de auction
132+
auction:
133+
ad-server-currency: USD
134+
blocklisted-accounts: []
135+
blocklisted-apps: []
136+
biddertmax:
137+
min: 50
138+
max: 5000
139+
percent: 100
140+
tmax-upstream-response-time: 30
141+
stored-requests-timeout-ms: 100
142+
timeout-notification:
143+
timeout-ms: 200
144+
log-result: false
145+
log-failure-only: false
146+
log-sampling-rate: 0.0
147+
max-request-size: 262144
148+
generate-bid-id: false
149+
cache:
150+
expected-request-time-ms: 10
151+
only-winning-bids: false
152+
validations:
153+
banner-creative-max-size: skip
154+
secure-markup: skip
155+
host-schain-node: []
156+
category-mapping-enabled: false
157+
strict-app-site-dooh: true
158+
159+
# Configuración de video
160+
video:
161+
stored-request-required: false
162+
stored-requests-timeout-ms: 90
163+
164+
# Configuración de eventos
165+
event:
166+
default-timeout-ms: 1000
167+
168+
# Configuración de setuid
169+
setuid:
170+
default-timeout-ms: 2000
171+
number-of-uid-cookies: 1
172+
173+
# Configuración de vtrack
174+
vtrack:
175+
default-timeout-ms: 2000
176+
allow-unknown-bidder: true
177+
modify-vast-for-unknown-bidder: true
178+
179+
# Configuración de cookie-sync
180+
cookie-sync:
181+
default-limit: 8
182+
coop-sync:
183+
default: true
184+
default-timeout-ms: 2000
185+
186+
# Configuración de logging (necesaria para sampling-rate)
187+
logging:
188+
sampling-rate: 0.01
189+
http-interaction:
190+
max-limit: 10000
191+
change-level:
192+
max-duration-ms: 60000
193+
194+
# Configuración de adaptadores
2195
adapters:
3196
appnexus:
4197
enabled: true
@@ -8,34 +201,169 @@ adapters:
8201
enabled: true
9202
pubmatic:
10203
enabled: true
204+
bidmatic:
205+
enabled: true
11206
rubicon:
12207
enabled: true
13-
metrics:
14-
prefix: prebid
208+
mockbider:
209+
enabled: true
210+
alvads:
211+
enabled: true
212+
# Configuración de cache
15213
cache:
16214
scheme: http
17215
host: localhost
18216
path: /cache
19217
query: uuid=
218+
219+
# Configuración de settings (IMPORTANTE: faltaba targeting.truncate-attr-chars)
20220
settings:
21221
enforce-valid-account: false
22222
generate-storedrequest-bidrequest-id: true
223+
targeting:
224+
truncate-attr-chars: 20
23225
filesystem:
24226
settings-filename: sample/configs/sample-app-settings.yaml
25227
stored-requests-dir: sample
26228
stored-imps-dir: sample
27229
stored-responses-dir: sample
28230
categories-dir:
29-
gdpr:
30-
default-value: 1
31-
vendorlist:
32-
v2:
33-
cache-dir: /var/tmp/vendor2
34-
v3:
35-
cache-dir: /var/tmp/vendor3
231+
in-memory-cache:
232+
notification-endpoints-enabled: false
233+
default-account-config: >
234+
{
235+
"auction": {
236+
"price-floors": {
237+
"enabled": true,
238+
"fetch": {
239+
"enabled": false,
240+
"timeout-ms": 5000,
241+
"max-rules": 0,
242+
"max-schema-dims": 5,
243+
"max-file-size-kb": 200,
244+
"max-age-sec": 86400,
245+
"period-sec": 3600
246+
},
247+
"enforce-floors-rate": 100,
248+
"adjust-for-bid-adjustment": true,
249+
"enforce-deal-floors": true,
250+
"use-dynamic-data": true,
251+
"max-rules": 100,
252+
"max-schema-dims": 3
253+
}
254+
}
255+
}
256+
257+
# Configuración del convertidor de monedas
258+
currency-converter:
259+
external-rates:
260+
enabled: false
261+
url: https://currencies.prebid.org
262+
default-timeout-ms: 4000
263+
refresh-period-ms: 900000
264+
265+
# Configuración completa de admin endpoints
36266
admin-endpoints:
37267
logging-changelevel:
38268
enabled: true
39269
path: /logging/changelevel
40270
on-application-port: true
41271
protected: false
272+
version:
273+
enabled: true
274+
path: /version
275+
on-application-port: true
276+
protected: false
277+
collected-metrics:
278+
enabled: false
279+
path: /collected-metrics
280+
on-application-port: true
281+
protected: false
282+
currency-rates:
283+
enabled: false
284+
path: /currency-rates
285+
on-application-port: true
286+
protected: false
287+
storedrequest:
288+
enabled: false
289+
path: /storedrequest
290+
on-application-port: true
291+
protected: false
292+
storedrequest-amp:
293+
enabled: false
294+
path: /storedrequest-amp
295+
on-application-port: true
296+
protected: false
297+
cache-invalidation:
298+
enabled: false
299+
path: /cache-invalidation
300+
on-application-port: true
301+
protected: false
302+
logging-httpinteraction:
303+
enabled: false
304+
path: /logging-httpinteraction
305+
on-application-port: true
306+
protected: false
307+
tracelog:
308+
enabled: false
309+
path: /tracelog
310+
on-application-port: true
311+
protected: false
312+
313+
# Configuración del puerto admin
314+
admin:
315+
port: 8060
316+
317+
# Configuración de geolocalización
318+
geolocation:
319+
enabled: false
320+
321+
# Configuración de health checks
322+
health-check:
323+
geolocation:
324+
enabled: false
325+
refresh-period-ms: 30000
326+
database:
327+
enabled: false
328+
refresh-period-ms: 30000
329+
330+
# Configuración básica del servidor
331+
server:
332+
max-initial-line-length: 8092
333+
max-headers-size: 16384
334+
ssl: false
335+
jks-path:
336+
jks-password:
337+
unix-socket:
338+
enabled: false
339+
path:
340+
server-instances: 1
341+
http:
342+
enabled: true
343+
port: 8080
344+
server-instances: 1
345+
cpu-load-monitoring:
346+
enabled: false
347+
measurement-interval-ms: 60000
348+
idle-timeout: 10
349+
350+
# Configuración de HTTP client
351+
http-client:
352+
max-pool-size: 4000
353+
idle-timeout-ms: 0
354+
pool-cleaner-period-ms: 1000
355+
connect-timeout-ms: 2500
356+
use-compression: true
357+
max-redirects: 0
358+
ssl: false
359+
jks-path:
360+
jks-password:
361+
362+
# reCAPTCHA (para algunos endpoints específicos)
363+
recaptcha-url: https://www.google.com/recaptcha/api/siteverify
364+
recaptcha-secret: secret_value
365+
366+
# Configuración de analytics (opcional)
367+
analytics:
368+
global:
369+
adapters: logAnalytics

0 commit comments

Comments
 (0)