forked from mongodb/docs-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.properties
More file actions
43 lines (36 loc) · 1.59 KB
/
application.properties
File metadata and controls
43 lines (36 loc) · 1.59 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
# MongoDB Configuration
# Connection URI should be provided with the MONGODB_URI environment variable
spring.data.mongodb.uri=${MONGODB_URI}
spring.data.mongodb.database=sample_mflix
# Server Configuration
# Default port is 3001, can be overridden with the PORT environment variable
server.port=${PORT:3001}
# CORS Configuration
# Allowed origins for cross-origin requests (typically the frontend URL)
cors.allowed.origins=${CORS_ORIGIN:http://localhost:3000}
# Voyage AI Configuration
# API key for Voyage AI embedding model (required for vector search)
voyage.api.key=${VOYAGE_API_KEY:}
# Application Info
spring.application.name=sample-app-java-mflix
# Logging Configuration
logging.level.com.mongodb.samplemflix=INFO
logging.level.org.mongodb.driver=WARN
# Suppress connection pool maintenance warnings (these are usually harmless)
logging.level.org.mongodb.driver.connection=ERROR
# Jackson Configuration (JSON serialization)
spring.jackson.default-property-inclusion=non_null
spring.jackson.serialization.write-dates-as-timestamps=false
# API Documentation (Swagger/OpenAPI)
springdoc.api-docs.path=/api-docs
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.swagger-ui.operationsSorter=method
# Disable "Try it out" by default (user must click to enable)
springdoc.swagger-ui.tryItOutEnabled=false
# Display request duration in Swagger UI
springdoc.swagger-ui.displayRequestDuration=true
# Enable deep linking for direct access to operations
springdoc.swagger-ui.deepLinking=true
# Show request/response examples
springdoc.swagger-ui.defaultModelsExpandDepth=1
springdoc.swagger-ui.defaultModelExpandDepth=1