# Kamal deploy configuration
service: match-live-tv
image: matchlivetv/backend

servers:
  web:
    hosts:
      - YOUR_HETZNER_IP

proxy:
  ssl: true
  host: api.matchlivetv.example.com

env:
  clear:
    RAILS_ENV: production
    MEDIAMTX_API_URL: http://mediamtx:9997
    MEDIAMTX_RTMP_URL: rtmp://mediamtx:1935
  secret:
    - SECRET_KEY_BASE
    - DATABASE_URL
    - REDIS_URL
    - JWT_SECRET
    - MEDIAMTX_WEBHOOK_SECRET
    - YOUTUBE_CLIENT_ID
    - YOUTUBE_CLIENT_SECRET

builder:
  arch: amd64
