# Default Notifications configuration generated by RapidKit
notifications:
  enabled: {{ notifications_defaults.get('enabled', True) | tojson }}
  default_channel: {{ notifications_defaults.get('default_channel', 'email') | tojson }}
  project_name: {{ project_name | tojson }}
  channels: {{ notifications_defaults.get('channels', ['email', 'push', 'sms']) | tojson }}
  retry_policy: {{ notifications_defaults.get('retry_policy', {'max_attempts': 3, 'backoff_seconds': 10}) | tojson }}
  email:
    {% set email_defaults = notifications_defaults.get('email', {}) %}
    host: {{ email_defaults.get('host', 'smtp.example.com') | tojson }}
    port: {{ email_defaults.get('port', 587) }}
    username: {{ email_defaults.get('username') | tojson }}
    password: {{ email_defaults.get('password') | tojson }}
    from_email: {{ email_defaults.get('from_email', 'noreply@rapidkit.top') | tojson }}
    from_name: {{ email_defaults.get('from_name', 'RapidKit Notifications') | tojson }}
    reply_to: {{ email_defaults.get('reply_to') | tojson }}
    use_tls: {{ email_defaults.get('use_tls', True) | tojson }}
    timeout_seconds: {{ email_defaults.get('timeout_seconds', 30) | tojson }}
  template:
    {% set template_defaults = notifications_defaults.get('template', {}) %}
    directory: {{ template_defaults.get('directory', 'templates/notifications') | tojson }}
    auto_reload: {{ template_defaults.get('auto_reload', False) | tojson }}
    cache: {{ template_defaults.get('cache', True) | tojson }}
