sample.ini 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Sample grafana config for deb & rpm packages
  2. # You only need to specify overrides here
  3. # Defaults are in the /opt/grafana/current/conf/defaults.ini file
  4. # This file is never ovewritten when upgrading grafana via deb or rpm package
  5. app_mode = production
  6. [server]
  7. ; protocol (http or https)
  8. protocol = http
  9. ; the ip address to bind to, empty will bind to all interfaces
  10. http_addr =
  11. ; the http port to use
  12. http_port = 3000
  13. ; The public facing domain name used to access grafana from a browser
  14. domain = localhost
  15. ; the full public facing url
  16. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  17. router_logging = false
  18. ; the path relative to grafana process working directory
  19. static_root_path = public
  20. enable_gzip = false
  21. [database]
  22. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  23. type = sqlite3
  24. host = 127.0.0.1:3306
  25. name = grafana
  26. user = root
  27. password =
  28. ; For "postgres" only, either "disable", "require" or "verify-full"
  29. ssl_mode = disable
  30. ; For "sqlite3" only
  31. path = /opt/grafana/data/grafana.db
  32. [security]
  33. ; default admin user, created on startup
  34. admin_user = admin
  35. ; default admin password, can be changed before first start of grafana, or in profile settings
  36. admin_password = admin
  37. ; used for signing
  38. secret_key = SW2YcwTIb9zpOOhoPsMm
  39. ; Auto-login remember days
  40. login_remember_days = 7
  41. cookie_username = grafana_user
  42. cookie_remember_name = grafana_remember
  43. [users]
  44. ; disable user signup / registration
  45. allow_sign_up = true
  46. ; Allow non admin users to create organizations
  47. allow_org_create = true
  48. # Set to true to automatically assign new users to the default organization (id 1)
  49. auto_assign_org = true
  50. ; Default role new users will be automatically assigned (if disabled above is set to true)
  51. auto_assign_org_role = Viewer
  52. [auth.anonymous]
  53. ; enable anonymous access
  54. enabled = false
  55. ; specify organization name that should be used for unauthenticated users
  56. org_name = Main org.
  57. ; specify role for unauthenticated users
  58. org_role = Viewer
  59. [log]
  60. level = Trace
  61. mode = console, file
  62. root_path = /var/log/grafana