forked from mtusi2026/mtusi2026lab7
109 lines
2.4 KiB
YAML
109 lines
2.4 KiB
YAML
version: 1
|
|
|
|
server:
|
|
health_address: 127.0.0.1:8082
|
|
metrics_address: 0.0.0.0:9091
|
|
tls:
|
|
ca_path: /run/security/internal-ca/ca.crt
|
|
certificate_path: /run/security/api/tls.crt
|
|
private_key_path: /run/security/api/tls.key
|
|
allowed_client_uri: spiffe://mtusi/lab7/load-balancer
|
|
allowed_metrics_client_uri: spiffe://mtusi/lab7/prometheus
|
|
session_store: valkey
|
|
session_ttl: 1h
|
|
idempotency_ttl: 24h
|
|
login_rate_limit:
|
|
account_attempts: 5
|
|
source_attempts: 20
|
|
window: 1m
|
|
request_timeout: 5s
|
|
http:
|
|
read_header_timeout: 5s
|
|
read_timeout: 10s
|
|
write_timeout: 10s
|
|
idle_timeout: 1m
|
|
shutdown_timeout: 5s
|
|
password:
|
|
memory_kib: 65536
|
|
iterations: 3
|
|
parallelism: 2
|
|
salt_length: 16
|
|
key_length: 32
|
|
max_concurrent_operations: 2
|
|
|
|
database:
|
|
min_connections: 1
|
|
max_connections: 10
|
|
max_connection_age: 30m
|
|
max_connection_idle: 5m
|
|
health_check_period: 30s
|
|
dependency_timeout: 5s
|
|
|
|
cache:
|
|
tls:
|
|
ca_path: /run/security/internal-ca/ca.crt
|
|
certificate_path: /run/security/client/tls.crt
|
|
private_key_path: /run/security/client/tls.key
|
|
server_name: redis-gateway
|
|
|
|
migration:
|
|
timeout: 30s
|
|
|
|
object_storage:
|
|
use_tls: true
|
|
ca_path: /run/security/internal-ca/ca.crt
|
|
timeout: 5s
|
|
|
|
attachments:
|
|
max_bytes: 10485760
|
|
max_pixels: 40000000
|
|
body_memory_bytes: 67108864
|
|
decode_memory_bytes: 402653184
|
|
|
|
pipeline:
|
|
version: 1
|
|
|
|
broker:
|
|
tls:
|
|
ca_path: /run/security/internal-ca/ca.crt
|
|
certificate_path: /run/security/client/tls.crt
|
|
private_key_path: /run/security/client/tls.key
|
|
server_name: redis-gateway
|
|
stream: attachment-jobs
|
|
consumer_group: attachment-workers
|
|
failed_stream: attachment-jobs-failed
|
|
failed_stream_max_length: 10000
|
|
|
|
outbox:
|
|
batch_size: 32
|
|
lease: 15s
|
|
poll_interval: 1s
|
|
recovery_interval: 10s
|
|
retry_delay: 2s
|
|
retention: 168h
|
|
cleanup_interval: 1m
|
|
cleanup_batch_size: 1000
|
|
|
|
worker:
|
|
concurrency: 2
|
|
prefetch: 4
|
|
lease: 30s
|
|
heartbeat_interval: 5s
|
|
processing_timeout: 20s
|
|
read_block: 2s
|
|
reclaim_interval: 5s
|
|
max_attempts: 5
|
|
retry:
|
|
base: 1s
|
|
max: 30s
|
|
memory_bytes: 738197504
|
|
|
|
monitoring:
|
|
metrics_address: 0.0.0.0:9091
|
|
health_address: 127.0.0.1:9092
|
|
tls:
|
|
ca_path: /run/security/internal-ca/ca.crt
|
|
certificate_path: /run/security/metrics/tls.crt
|
|
private_key_path: /run/security/metrics/tls.key
|
|
allowed_client_uri: spiffe://mtusi/lab7/prometheus
|