You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.7 KiB
102 lines
2.7 KiB
## |
|
## grafana.ini -- Grafana server configuration |
|
## |
|
|
|
app_name = Grafana |
|
app_mode = production |
|
|
|
[server] |
|
protocol = http |
|
domain = localhost |
|
root_url = %(protocol)s://%(domain)s:%(http_port)s/ |
|
http_addr = 127.0.0.1 |
|
http_port = 3000 |
|
router_logging = false |
|
static_root_path = @l_prefix@/lib/grafana |
|
enable_gzip = false |
|
|
|
[database] |
|
type = sqlite3 |
|
host = |
|
name = grafana |
|
user = |
|
password = |
|
path = @l_prefix@/var/grafana/db/grafana.db |
|
|
|
[session] |
|
provider = file |
|
provider_config = @l_prefix@/var/grafana/run/grafana.sessions |
|
cookie_name = grafana_sess |
|
cookie_secure = false |
|
enable_set_cookie = true |
|
gc_time_interval = 86400 |
|
session_life_time = 86400 |
|
session_id_hashfunc = sha1 |
|
session_id_hashkey = |
|
|
|
[security] |
|
admin_user = admin |
|
admin_password = admin |
|
secret_key = SW2YcwTIb9zpOOhoPsMm |
|
login_remember_days = 7 |
|
cookie_username = grafana_user |
|
cookie_remember_name = grafana_remember |
|
disable_user_signup = false |
|
|
|
[account.single] |
|
enabled = true |
|
account_name = main |
|
default_role = Editor |
|
|
|
[auth.anonymous] |
|
enabled = false |
|
account_name = main |
|
account_role = Viewer |
|
|
|
[auth.github] |
|
enabled = false |
|
client_id = some_id |
|
client_secret = some_secret |
|
scopes = user:email |
|
auth_url = https://github.com/login/oauth/authorize |
|
token_url = https://github.com/login/oauth/access_token |
|
|
|
[auth.google] |
|
enabled = false |
|
client_id = some_client_id |
|
client_secret = some_client_secret |
|
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email |
|
auth_url = https://accounts.google.com/o/oauth2/auth |
|
token_url = https://accounts.google.com/o/oauth2/token |
|
|
|
[log] |
|
root_path = @l_prefix@/var/grafana/log |
|
mode = file |
|
buffer_len = 10000 |
|
level = Info |
|
|
|
[log.file] |
|
level = Info |
|
log_rotate = true |
|
max_lines = 1000000 |
|
max_lines_shift = 28 |
|
daily_rotate = true |
|
max_days = 7 |
|
|
|
[event_publisher] |
|
enabled = false |
|
rabbitmq_url = amqp://localhost/ |
|
exchange = grafana_events |
|
|
|
[dashboards.json] |
|
enabled = false |
|
path = @l_prefix@/lib/grafana/dashboards |
|
|
|
[smtp] |
|
enabled = false |
|
host = 127.0.0.1 |
|
user = |
|
password = |
|
from_address = grafana@server.example.com |
|
skip_verify = true |
|
|
|
|