# sample_generic_yaml.yaml — the shape interpreters/generic_yaml.js reads.
# The same service configuration as sample_generic_toml.toml, written in
# the block style a real YAML config uses.
---
title: Ledger service
enabled: true
max_connections: 250
sample_rate: 0.25
started: "2026-09-18T07:30:00Z"

server:
  host: 127.0.0.1
  port: 8080
  tags: [primary, eu-west]
  limits: {cpu: 2, memory_mb: 4096}
  tls:
    enabled: false
    ciphers:
      - TLS_AES_128_GCM_SHA256
      - TLS_AES_256_GCM_SHA384

database:
  url: postgres://ledger@db.internal/ledger
  pool:
    min: 2
    max: 16
  retry_delays_ms:
    - 100
    - 250
    - 1000
  replica: null

jobs:
  - name: reconcile
    schedule: "0 2 * * *"
    retries: 3
  - name: settle
    schedule: "*/15 * * * *"
    retries: 0
