116 lines
2.7 KiB
YAML
116 lines
2.7 KiB
YAML
controller:
|
|
api_prefix: "/api/v1"
|
|
request_id_header: "X-Request-ID"
|
|
|
|
service:
|
|
provider_timeout_seconds: 10.0
|
|
max_parallel_providers: 8
|
|
|
|
business_logic:
|
|
weight_round_scale: 2
|
|
provider_price_multiplier: 1.0
|
|
|
|
repository:
|
|
redis_dsn: "redis://localhost:6379/0"
|
|
price_cache_ttl_seconds: 900
|
|
|
|
adapter:
|
|
cdek_base_url: "https://api.cdek.ru/v2"
|
|
cdek_client_id: "test-client-id"
|
|
cdek_client_secret: "test-client-secret"
|
|
cdek_retry_attempts: 2
|
|
cdek_retry_backoff_seconds: 0.2
|
|
cdek_timeout_seconds: 10.0
|
|
cdek_cache_ttl_seconds: 900
|
|
cse_base_url: "http://lk-test.cse.ru/1c/ws/web1c.1cws"
|
|
cse_login: "test"
|
|
cse_password: "2016"
|
|
cse_retry_attempts: 2
|
|
cse_retry_backoff_seconds: 0.2
|
|
cse_timeout_seconds: 10.0
|
|
cse_cache_ttl_seconds: 900
|
|
cse_payer: "test-payer"
|
|
cse_payment_method: "test-payment-method"
|
|
cse_shipping_method: "test-shipping-method"
|
|
cse_urgency: "test-urgency"
|
|
|
|
tbank_payment:
|
|
init_url: "https://securepay.tinkoff.ru/v2/Init"
|
|
notification_url: "https://merchant.test/api/v1/delivery/tbank/notifications"
|
|
success_url: "https://merchant.test/payment/success"
|
|
auth:
|
|
terminal_key: "test-terminal-key"
|
|
password: "test-password"
|
|
timeout_seconds: 10.0
|
|
retry_attempts: 2
|
|
retry_backoff_seconds: 0.2
|
|
|
|
postgres:
|
|
dsn: "postgresql+asyncpg://postgres:postgres@localhost:5432/g2s_aggregator_test"
|
|
|
|
address_suggestions:
|
|
country_to_provider:
|
|
RU: "dadata"
|
|
BY: "dadata"
|
|
KZ: "dadata"
|
|
AM: "yandex_geosuggest"
|
|
AZ: "yandex_geosuggest"
|
|
KG: "yandex_geosuggest"
|
|
MD: "yandex_geosuggest"
|
|
TJ: "yandex_geosuggest"
|
|
TM: "yandex_geosuggest"
|
|
UZ: "yandex_geosuggest"
|
|
AL: "tomtom"
|
|
AT: "tomtom"
|
|
BE: "tomtom"
|
|
BG: "tomtom"
|
|
CH: "tomtom"
|
|
CZ: "tomtom"
|
|
DE: "tomtom"
|
|
DK: "tomtom"
|
|
EE: "tomtom"
|
|
ES: "tomtom"
|
|
FI: "tomtom"
|
|
FR: "tomtom"
|
|
GB: "tomtom"
|
|
GR: "tomtom"
|
|
HR: "tomtom"
|
|
HU: "tomtom"
|
|
IE: "tomtom"
|
|
IT: "tomtom"
|
|
LT: "tomtom"
|
|
LV: "tomtom"
|
|
NL: "tomtom"
|
|
"NO": "tomtom"
|
|
PL: "tomtom"
|
|
PT: "tomtom"
|
|
RO: "tomtom"
|
|
RS: "tomtom"
|
|
SE: "tomtom"
|
|
SI: "tomtom"
|
|
SK: "tomtom"
|
|
UA: "tomtom"
|
|
dadata:
|
|
url: "https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/address"
|
|
api_key: "test-dadata-api-key"
|
|
timeout_seconds: 7.5
|
|
yandex_geosuggest:
|
|
url: "https://suggest-maps.yandex.ru/v1/suggest"
|
|
api_key: "test-yandex-geosuggest-api-key"
|
|
timeout_seconds: 6.5
|
|
tomtom:
|
|
url: "https://api.tomtom.com/search/2/search"
|
|
api_key: "test-tomtom-api-key"
|
|
timeout_seconds: 5.5
|
|
|
|
observability:
|
|
enabled: false
|
|
service_name: "g2s-aggregator-test"
|
|
otlp_endpoint: "http://localhost:4317"
|
|
otlp_insecure: true
|
|
|
|
email:
|
|
smtp_host: "smtp.test"
|
|
smtp_port: 587
|
|
from_address: "no-reply@test"
|