config.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # see https://github.com/ankane/blazer for more info
  2. data_sources:
  3. main:
  4. url: <%%= ENV["BLAZER_DATABASE_URL"] %>
  5. # statement timeout, in seconds
  6. # none by default
  7. # timeout: 15
  8. # caching settings
  9. # can greatly improve speed
  10. # off by default
  11. # cache:
  12. # mode: slow # or all
  13. # expires_in: 60 # min
  14. # slow_threshold: 15 # sec, only used in slow mode
  15. # wrap queries in a transaction for safety
  16. # not necessary if you use a read-only user
  17. # true by default
  18. # use_transaction: false
  19. smart_variables:
  20. # zone_id: "SELECT id, name FROM zones ORDER BY name ASC"
  21. #=== You can use it as Array
  22. # zone_name: ['Zone 1', 'Zone 2']
  23. #=== or as Hash
  24. # zone_type: {type_1: 'Type 1', type_2: 'Type 2'}
  25. linked_columns:
  26. # user_id: "/admin/users/{value}"
  27. smart_columns:
  28. # user_id: "SELECT id, name FROM users WHERE id IN {value}"
  29. # create audits
  30. audit: true
  31. # change the time zone
  32. # time_zone: "Pacific Time (US & Canada)"
  33. # class name of the user model
  34. # user_class: User
  35. # method name for the user model
  36. # user_name: name
  37. # optional auth method to use as a before_action (default: nil)
  38. # before_action: :authenticate!
  39. # email to send checks from
  40. # from_email: blazer@example.org
  41. check_schedules:
  42. - "1 day"
  43. - "1 hour"
  44. - "5 minutes"