Configuration
Ratelord is configured via a YAML file (`ratelord.yaml`) or environment variables.
Basic Configuration
yaml
server:
port: 8090
host: "127.0.0.1"
storage:
type: "sqlite"
path: "./data/ratelord.db"
providers:
github:
enabled: true
tokens:
- "${GITHUB_TOKEN}"Policies
Policies define how resources are allocated.
yaml
policies:
- name: "strict-limit"
scope: "global"
rules:
- resource: "requests"
limit: 5000
period: "1h"