grafana.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. ; [database]
  62. ; ; Either "mysql", "postgres" or "sqlite3", it's your choice
  63. ; type = postgres
  64. ; host = 127.0.0.1:5432
  65. ; name = grafana
  66. ; user = grafana
  67. ; password = grafana
  68. ; ; For "postgres" only, either "disable", "require" or "verify-full"
  69. ; ssl_mode = disable
  70. ; ; For "sqlite3" only
  71. ; path = data/grafana.db
  72. ;
  73. [log]
  74. root_path =
  75. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  76. ; Use comma to separate multiple modes, e.g. "console, file"
  77. mode = console
  78. ; Buffer length of channel, keep it as it is if you don't know what it is.
  79. buffer_len = 10000
  80. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  81. level = Trace
  82. ; For "console" mode only
  83. [log.console]
  84. level =
  85. ; For "file" mode only
  86. [log.file]
  87. level =
  88. ; This enables automated log rotate(switch of following options), default is true
  89. log_rotate = true
  90. ; Max line number of single file, default is 1000000
  91. max_lines = 1000000
  92. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  93. max_lines_shift = 28
  94. ; Segment log daily, default is true
  95. daily_rotate = true
  96. ; Expired days of log file(delete after max days), default is 7
  97. max_days = 7