Files
group-2-threaded-project-pe…/backend/src/main/resources/application.yml
Harkamal Randhawa d66508137b Fix Android app connection and timeout issues
Add proper timeout configuration to OkHttpClient (30s connect/read/write)
Update OkHttp logging-interceptor to 4.12.0 to match OkHttp version
Improve error messages to show server URL for debugging
Configure backend to listen on all interfaces (0.0.0.0)
Remove EdgeToEdge calls that interfered with layout
2026-03-29 17:54:23 -06:00

58 lines
1.3 KiB
YAML

spring:
application:
name: petshop-backend
servlet:
multipart:
enabled: true
max-file-size: 5MB
max-request-size: 5MB
datasource:
url: ${SPRING_DATASOURCE_URL:jdbc:mysql://localhost:3306/Petstoredb?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC}
username: ${SPRING_DATASOURCE_USERNAME:petshop}
password: ${SPRING_DATASOURCE_PASSWORD:petshop}
driver-class-name: com.mysql.cj.jdbc.Driver
sql:
init:
mode: never
jpa:
hibernate:
ddl-auto: validate
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
show-sql: ${JPA_SHOW_SQL:false}
properties:
hibernate:
format_sql: true
open-in-view: false
flyway:
enabled: true
baseline-on-migrate: true
baseline-version: 0
server:
port: ${SERVER_PORT:8080}
address: ${SERVER_ADDRESS:0.0.0.0}
servlet:
context-path: /
springdoc:
api-docs:
path: /v3/api-docs
swagger-ui:
path: /swagger-ui
jwt:
secret: ${JWT_SECRET:change_me_please_make_this_at_least_32_characters_long_for_security}
expiration: ${JWT_EXPIRATION:86400000}
logging:
level:
com.petshop: ${LOG_LEVEL:INFO}
org.springframework.security: ${LOG_LEVEL_SECURITY:WARN}
org.springdoc.core.events.SpringDocAppInitializer: ERROR