grafana.ini 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. app_name = Grafana Pro Server
  2. app_mode = dev
  3. [server]
  4. protocol = http
  5. domain = localhost
  6. root_url = %(protocol)s://%(domain)s:%(http_port)s/
  7. http_addr =
  8. http_port = 3000
  9. ssh_port = 22
  10. router_logging = false
  11. [session]
  12. ; Either "memory", "file", default is "memory"
  13. provider = file
  14. ; Provider config options
  15. ; memory: not have any config yet
  16. ; file: session file path, e.g. `data/sessions`
  17. ; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,gogs`
  18. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  19. provider_config = data/sessions
  20. ; Session cookie name
  21. cookie_name = grafana_pro_sess
  22. ; If you use session in https only, default is false
  23. cookie_secure = false
  24. ; Enable set cookie, default is true
  25. enable_set_cookie = true
  26. ; Session GC time interval, default is 86400
  27. gc_time_interval = 86400
  28. ; Session life time, default is 86400
  29. session_life_time = 86400
  30. ; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
  31. session_id_hashfunc = sha1
  32. ; Session hash key, default is use random string
  33. session_id_hashkey =
  34. [oauth]
  35. enabled = true
  36. [oauth.github]
  37. enabled = true
  38. client_id = de054205006b9baa2e17
  39. client_secret = 72b7ea52d9f1096fdf36cea95e95362a307e0322
  40. scopes = user:email
  41. auth_url = https://github.com/login/oauth/authorize
  42. token_url = https://github.com/login/oauth/access_token
  43. [oauth.google]
  44. enabled = true
  45. client_id = 106011922963-4pvl05e9urtrm8bbqr0vouosj3e8p8kb.apps.googleusercontent.com
  46. client_secret = K2evIa4QhfbhhAm3SO72t2Zv
  47. scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
  48. auth_url = https://accounts.google.com/o/oauth2/auth
  49. token_url = https://accounts.google.com/o/oauth2/token
  50. [database]
  51. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  52. type = sqlite3
  53. host = 127.0.0.1:3306
  54. name = grafana
  55. user = root
  56. PASSWD =
  57. ; For "postgres" only, either "disable", "require" or "verify-full"
  58. ssl_mode = disable
  59. ; For "sqlite3" only
  60. path = data/grafana.db
  61. [log]
  62. root_path =
  63. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  64. ; Use comma to separate multiple modes, e.g. "console, file"
  65. mode = console
  66. ; Buffer length of channel, keep it as it is if you don't know what it is.
  67. buffer_len = 10000
  68. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  69. level = Trace
  70. ; For "console" mode only
  71. [log.console]
  72. level =
  73. ; For "file" mode only
  74. [log.file]
  75. level =
  76. ; This enables automated log rotate(switch of following options), default is true
  77. log_rotate = true
  78. ; Max line number of single file, default is 1000000
  79. max_lines = 1000000
  80. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  81. max_lines_shift = 28
  82. ; Segment log daily, default is true
  83. daily_rotate = true
  84. ; Expired days of log file(delete after max days), default is 7
  85. max_days = 7