conf.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. conf:
  2. listen:
  3. host: 0.0.0.0 # `manager api` listening ip or host name
  4. port: 9000 # `manager api` listening port
  5. etcd:
  6. endpoints: # supports defining multiple etcd host addresses for an etcd cluster
  7. - 127.0.0.1:2379
  8. # etcd basic auth info
  9. # username: "root" # ignore etcd username if not enable etcd auth
  10. # password: "123456" # ignore etcd password if not enable etcd auth
  11. log:
  12. error_log:
  13. level: warn # supports levels, lower to higher: debug, info, warn, error, panic, fatal
  14. file_path:
  15. logs/error.log # supports relative path, absolute path, standard output
  16. # such as: logs/error.log, /tmp/logs/error.log, /dev/stdout, /dev/stderr
  17. authentication:
  18. secret:
  19. secret # secret for jwt token generation.
  20. # NOTE: Highly recommended to modify this value to protect `manager api`.
  21. # if it's default value, when `manager api` start, it will generate a random string to replace it.
  22. expire_time: 3600 # jwt token expire time, in second
  23. users:
  24. - username: admin # username and password for login `manager api`
  25. password: admin
  26. - username: user
  27. password: user
  28. plugin_attr:
  29. prometheus:
  30. export_addr:
  31. ip: "0.0.0.0"
  32. port: 9091