Files
payouts/config/payouts.properties

63 lines
1.7 KiB
Properties

Server.Port = :8080
Server.WriteTimeout = 35s
Server.ReadTimeout = 35s
Server.EnablePProfEndpoints = false
Server.Tls.Enabled = false
Server.Tls.CertFile =
Server.Tls.KeyFile =
# Prometheus settings
Metrics.Endpoint = /metrics
Metrics.HistogramBuckets = 0.001,0.002,0.005,0.01,0.025,0.05,0.1,0.25,0.5,1,2.5,5,10
Metrics.Http.HistogramEnabled = true
Metrics.Http.Buckets = 0.001,0.002,0.005,0.01,0.025,0.05,0.1,0.25,0.5,1,2.5,5,10
Log.Level = DEBUG
Log.FilePath = ./logs/payouts.log
Log.TextOutput = false
Log.StdoutEnabled = true
Log.FileEnabled = false
# type: sqlite, postgres
Database.Type =
# connection string:
# sqlite: payouts.db
# postgres: host=127.0.0.1 user=gorm password=gorm dbname=gorm port=5432 sslmode=disable
Database.Connection =
# DB log level
Database.LogLevel = Info
# Trace all requests
Database.TraceRequests = false
# Session cache TTL
Cache.TTL = 24h
# Yookassa related props
# Base API Url
YooKassa.BaseUrl = https://api.yookassa.ru/v3
# Timeout for requests
YooKassa.Timeout = 2s
YooKassa.Retry.Enabled = false
# Set retry count (including initial request)
YooKassa.Retry.Count = 3
# Set wait time between retries
YooKassa.Retry.WaitTime = 200ms
# Set maximum wait time (for exponential backoff)
YooKassa.Retry.MaxWaitTime = 5s
YooKassa.Test = false
YooKassa.CheckAllowedCallbackAddress = true
YooKassa.AllowedCallbackSubnets = 185.71.76.0/27,185.71.77.0/27,77.75.153.0/25,77.75.156.11/32,77.75.156.35/32,77.75.154.128/25,2a02:5180::/32
# Base API key/secret
YooKassa.ApiBaseKey =
YooKassa.ApiBaseSecret =
# Payments API key/secret
YooKassa.ApiPaymentKey =
YooKassa.ApiPaymentSecret =
# Timeout to process yookassa callback
YooKassa.CallbackProcessTimeout = 1s