Configuration Properties

Configure MARZ behavior in your application.yml:

marz:
  enabled: true                          # Master switch
  safety-net-interval-ms: 60000         # CRC32 insurance check (WatchService is primary)
  default-source: file://config/app.yml  # Fallback source when @Marz doesn't specify one

  # Optional: connect to MARZ Platform for dashboard + RBAC
  platform:
    api-key: marz_pk_your_key_here       # Activates the platform agent
    endpoint: wss://api.mymarz.com/agent
    environment: production
    heartbeat-interval-ms: 30000
    reconnect-max-delay-ms: 60000

Property Reference

PropertyDefaultDescription
marz.enabledtrueEnable/disable all MARZ processing
marz.safety-net-interval-ms60000Safety-net CRC32 check interval. WatchService is event-driven; this is insurance.
marz.default-sourcenullDefault source URI for fields that don’t specify one
marz.platform.api-keynullPlatform API key. Agent only activates when set.
marz.platform.endpointwss://api.mymarz.com/agentPlatform WebSocket endpoint
marz.platform.environmentnullEnvironment label. Falls back to spring.profiles.active.
marz.platform.heartbeat-interval-ms30000Heartbeat frequency. Minimum: 5000ms.
marz.platform.reconnect-max-delay-ms60000Max exponential backoff for reconnect (5s → 10s → 20s → cap)

Note: The platform agent only activates when marz.platform.api-key is set. Without it, MARZ operates standalone with file-based config sources. The MARZ Platform dashboard is coming soon.