forked from mtusi2026/mtusi2026lab5
base of lab 4
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
server:
|
||||
shutdown: graceful
|
||||
tomcat:
|
||||
threads:
|
||||
max: 64
|
||||
connection-timeout: 2s
|
||||
spring:
|
||||
application:
|
||||
name: messenger
|
||||
lifecycle:
|
||||
timeout-per-shutdown-phase: 15s
|
||||
jackson:
|
||||
default-property-inclusion: always
|
||||
deserialization:
|
||||
fail-on-unknown-properties: true
|
||||
fail-on-trailing-tokens: true
|
||||
mapper:
|
||||
allow-coercion-of-scalars: false
|
||||
datasource:
|
||||
url: ${DB_URL:jdbc:postgresql://localhost:5432/messenger}
|
||||
username: ${DB_USERNAME:messenger}
|
||||
password: ${DB_PASSWORD:messenger}
|
||||
hikari:
|
||||
maximum-pool-size: ${DB_POOL_SIZE:8}
|
||||
minimum-idle: 1
|
||||
connection-timeout: 1000
|
||||
validation-timeout: 500
|
||||
data-source-properties:
|
||||
connectTimeout: 2
|
||||
socketTimeout: 8
|
||||
options: "-c statement_timeout=5000 -c lock_timeout=3000"
|
||||
data:
|
||||
redis:
|
||||
host: ${REDIS_HOST:localhost}
|
||||
port: 6379
|
||||
password: ${REDIS_PASSWORD:}
|
||||
timeout: 1s
|
||||
connect-timeout: 1s
|
||||
flyway:
|
||||
enabled: ${FLYWAY_ENABLED:true}
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: validate
|
||||
open-in-view: false
|
||||
transaction:
|
||||
default-timeout: 8s
|
||||
app:
|
||||
session:
|
||||
ttl-seconds: 86400
|
||||
|
||||
s3:
|
||||
endpoint: ${S3_ENDPOINT:http://localhost:9000}
|
||||
access-key: ${S3_ACCESS_KEY:}
|
||||
secret-key: ${S3_SECRET_KEY:}
|
||||
bucket: ${S3_BUCKET:messenger-attachments}
|
||||
|
||||
uploads:
|
||||
max-concurrent: ${UPLOAD_MAX_CONCURRENT:1}
|
||||
temp-dir: ${UPLOAD_TEMP_DIR:/tmp/messenger-uploads}
|
||||
|
||||
cleanup:
|
||||
enabled: ${ATTACHMENT_CLEANUP_ENABLED:true}
|
||||
grace-seconds: ${ATTACHMENT_CLEANUP_GRACE_SECONDS:3600}
|
||||
interval-ms: ${ATTACHMENT_CLEANUP_INTERVAL_MS:300000}
|
||||
initial-delay-ms: ${ATTACHMENT_CLEANUP_INITIAL_DELAY_MS:60000}
|
||||
Reference in New Issue
Block a user