This commit is contained in:
Vladislav Kunetskiy
2026-10-06 18:01:00 +03:00
parent 51b236a69f
commit dc743548c8
122 changed files with 10682 additions and 2139 deletions
+47
View File
@@ -0,0 +1,47 @@
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
lock_ttl: 10s
lock_wait_timeout: 2s
lock_timeout_policy: error
session:
ttl_seconds: 3600