csgowtfd/config_example.yaml

62 lines
1.4 KiB
YAML

logging:
level: DEBUG
db:
driver: pgx
connect_to: "postgres://username:password@localhost:5432/database_name"
parser:
worker: 6
steam:
username: steamuser
# Password needs to be provided only until a login_key is obtained, can be empty after
password: steampassword
auth_code:
api_key: apikey
rate_per_sec: 1
sentry: ".sentry"
login_key: ".login_key"
# maximum amount of time (in minutes) to wait before trying to reconnect to steam
max_retry_wait: 30
redis:
address: "localhost:6379"
password: ""
httpd:
cors_allow_domains:
- '*'
listen:
- host: localhost
port: 8000
- socket: /tmp/csgowtf.sock
csgowtfd:
# how often should a profile be refreshed from steam
# more on format: https://pkg.go.dev/time#ParseDuration
# default: 168h (7d)
profile_update: "168h"
# how often should csgowtfd check for a new match
# format same as profile_update
# default: 30m
sharecode_update: "30m"
# days in which demos expire
demos_expire: 30
# ms between shots to count as spray
spray_timeout: 500
# timeouts
timeout:
# seconds before incoming request with no data send timeout
read: 5
# seconds to write a response before timeout
write: 30
# seconds before closing idle connections
idle: 120
deepl:
base_url: api-free.deepl.com
# get your API key on deepl.com
api_key: <api_key>
# timeout in sec to wait for deepl response
timeout: 15