runtime:
  shutdown_timeout_seconds: 15

grpc:
  network: tcp
  address: ":50061"
  advertise_host: "sendico_billing_documents"
  enable_reflection: true
  enable_health: true

metrics:
  address: ":9409"

database:
  driver: mongodb
  settings:
    host_env: DOCUMENTS_MONGO_HOST
    port_env: DOCUMENTS_MONGO_PORT
    database_env: DOCUMENTS_MONGO_DATABASE
    user_env: DOCUMENTS_MONGO_USER
    password_env: DOCUMENTS_MONGO_PASSWORD
    auth_source_env: DOCUMENTS_MONGO_AUTH_SOURCE
    replica_set_env: DOCUMENTS_MONGO_REPLICA_SET

documents:
  issuer:
    legal_name: "Sendico Ltd"
    legal_address: "12 Market Street, London, UK"
    logo_path: "/assets/logo.png"
  templates:
    acceptance_path: "templates/acceptance.tpl"
  protection:
    owner_password: "sendico-documents"
  storage:
    driver: minio
    s3:
      endpoint: "s3.sendico.io"
      region: "us-east-1"
      bucket: "sendico-documents"
      access_key_env: DOCUMENTS_S3_ACCESS_KEY
      secret_access_key_env: DOCUMENTS_S3_SECRET_KEY
      use_ssl: true
      force_path_style: true

messaging:
  driver: NATS
  settings:
    url_env: NATS_URL
    host_env: NATS_HOST
    port_env: NATS_PORT
    username_env: NATS_USER
    password_env: NATS_PASSWORD
    broker_name: Billing Documents Service
    max_reconnects: 10
    reconnect_wait: 5
    buffer_size: 1024
