summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
blob: 93f600065cb2fdeecb4e76fbbfb6973210e1da35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
server:
  grpc_addr: "localhost:50051"
  http_addr: "localhost:8007"
  public_url: "muxstr.x.bdw.to"
  read_timeout: 30s
  write_timeout: 30s

database:
  path: "relay.db"

auth:
  read:
    enabled: false
    allowed_npubs: []
  write:
    enabled: false
    allowed_npubs: []
  timestamp_window: 60
  skip_methods: []

rate_limit:
  enabled: false
  default_rps: 10.0
  default_burst: 20
  ip_rps: 5.0
  ip_burst: 10
  cleanup_interval: 5m
  max_idle_time: 10m

metrics:
  enabled: true
  addr: ":9090"
  path: "/metrics"
  namespace: "muxstr"
  subsystem: "relay"

logging:
  level: "info"
  format: "json"
  output: "stdout"

storage:
  auto_compact: true
  compact_interval: 24h
  max_event_age: 0s