Files
mtusi2026lab2/config/dev/config.yaml
T
2026-10-06 00:22:02 +03:00

45 lines
641 B
YAML

env: dev
server:
host: 0.0.0.0
port: 8080
read_header_timeout: 10s
shutdown_timeout: 10s
log:
level: info
format: json
postgres:
host: localhost
port: 5432
database: messenger
user: messenger
password: ${APP_POSTGRES_PASSWORD}
ssl_mode: disable
max_conns: 10
min_conns: 1
max_conn_lifetime: 1h
max_conn_idle_time: 30m
connect_timeout: 5s
query_timeout: 5s
redis:
enabled: true
host: localhost
port: 6379
db: 0
max_retries: 3
dial_timeout: 5s
read_timeout: 3s
write_timeout: 3s
pool_size: 10
cache:
enabled: true
chat_list_ttl: 5m
session_ttl: 5m
session:
ttl_seconds: 3600