2025-11-23 23:25:58 +07:00
|
|
|
spring:
|
2025-12-04 15:09:47 +07:00
|
|
|
session:
|
|
|
|
|
timeout: 7d
|
|
|
|
|
cookie:
|
|
|
|
|
name: SESSION_ID
|
|
|
|
|
http-only: true
|
|
|
|
|
secure: false
|
|
|
|
|
same-site: none
|
|
|
|
|
max-age: 604800
|
|
|
|
|
|
|
|
|
|
cors:
|
|
|
|
|
allowed-origins: ${CORS_ALLOWED_ORIGINS:http://92.242.61.23:2998,http://localhost:3000}
|
|
|
|
|
allowed-methods: GET,POST,PUT,DELETE,OPTIONS,PATCH,HEAD
|
|
|
|
|
allowed-headers: "*"
|
|
|
|
|
exposed-headers: Set-Cookie,Authorization,Content-Type
|
|
|
|
|
allow-credentials: true # ВАЖНО для кук!
|
|
|
|
|
max-age: 3600
|
|
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
org.springframework.web.cors: DEBUG
|
|
|
|
|
org.springframework.security: DEBUG
|
|
|
|
|
org.springframework.web: DEBUG
|
|
|
|
|
|
2025-11-23 23:25:58 +07:00
|
|
|
datasource:
|
2025-11-24 21:04:50 +07:00
|
|
|
url: jdbc:postgresql://${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
|
|
|
|
username: ${POSTGRES_USER}
|
|
|
|
|
password: ${POSTGRES_PASSWORD}
|
|
|
|
|
driver-class-name: org.postgresql.Driver
|
2025-11-23 23:25:58 +07:00
|
|
|
|
|
|
|
|
jpa:
|
|
|
|
|
hibernate:
|
|
|
|
|
ddl-auto: update
|
|
|
|
|
show-sql: true
|
2025-12-04 15:09:47 +07:00
|
|
|
properties:
|
|
|
|
|
hibernate:
|
|
|
|
|
format_sql: true
|
2025-11-23 23:25:58 +07:00
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
port: ${SERVER_PORT:8080}
|
2025-12-04 15:09:47 +07:00
|
|
|
servlet:
|
|
|
|
|
session:
|
|
|
|
|
cookie:
|
|
|
|
|
same-site: none
|
|
|
|
|
encoding:
|
|
|
|
|
charset: UTF-8
|
|
|
|
|
enabled: true
|
2025-11-23 23:25:58 +07:00
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
root: INFO
|
2025-12-04 15:09:47 +07:00
|
|
|
org.springframework.web.cors: TRACE # Более детальные логи
|
|
|
|
|
org.springframework.session: DEBUG
|
|
|
|
|
pattern:
|
|
|
|
|
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
|
|
|
|
|
file:
|
|
|
|
|
name: ./logs/app.log
|
|
|
|
|
max-size: 10MB
|
|
|
|
|
max-history: 30
|