-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.properties
More file actions
33 lines (27 loc) · 1.21 KB
/
application.properties
File metadata and controls
33 lines (27 loc) · 1.21 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
# Server Configuration
server.port=8080
# HTTP Client Configuration
http.client.timeout=15000
http.client.max-connections=200
http.client.user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
http.client.accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
http.client.accept-language=en-US,en;q=0.9
http.client.accept-encoding=gzip, deflate, br
http.client.connection=keep-alive
# Performance Scoring Thresholds (latency in ms -> score)
analyzer.performance.threshold.200=100
analyzer.performance.threshold.500=85
analyzer.performance.threshold.1000=70
analyzer.performance.threshold.2000=50
analyzer.performance.default-score=30
# Content Size Limits (size in bytes -> bonus points)
analyzer.content-size.threshold.300000=10
analyzer.content-size.threshold.1000000=5
# CORS Configuration (allow all origins for development)
spring.web.cors.allowed-origins=*
spring.web.cors.allowed-methods=*
spring.web.cors.allowed-headers=*
# Static Resources (served from src/main/resources/static/)
spring.web.resources.add-mappings=true
# JSON Configuration (use snake_case for compatibility with frontend)
spring.jackson.property-naming-strategy=SNAKE_CASE