Files
PriceForge/config.example.yaml
2026-03-07 21:10:20 +03:00

63 lines
1.4 KiB
YAML

# PriceForge Configuration
# Copy this file to config.yaml and update values
server:
host: "127.0.0.1" # Local-only mode
port: 8084
mode: "release" # debug | release
read_timeout: "30s"
write_timeout: "30s"
database:
host: "localhost"
port: 3306
name: "RFQ_LOG"
user: "priceforge"
password: "CHANGE_ME"
max_open_conns: 25
max_idle_conns: 5
conn_max_lifetime: "5m"
pricing:
default_method: "weighted_median" # median | average | weighted_median
default_period_days: 90
freshness_green_days: 30
freshness_yellow_days: 60
freshness_red_days: 90
min_quotes_for_median: 3
popularity_decay_days: 180
export:
temp_dir: "/tmp/priceforge-exports"
max_file_age: "1h"
company_name: "Your Company Name"
alerts:
enabled: true
check_interval: "1h"
high_demand_threshold: 5 # КП за 30 дней
trending_threshold_percent: 50 # % роста для алерта
scheduler:
enabled: true
poll_interval: "1m"
alerts_interval: "1h"
update_prices_interval: "24h"
update_popularity_interval: "24h"
reset_weekly_counters_interval: "168h"
reset_monthly_counters_interval: "720h"
notifications:
email_enabled: false
smtp_host: "smtp.example.com"
smtp_port: 587
smtp_user: ""
smtp_password: ""
from_address: "priceforge@example.com"
logging:
level: "info" # debug | info | warn | error
format: "json" # json | text
output: "stdout" # stdout | file
file_path: "/var/log/priceforge/app.log"