nsqadmin.cfg.example 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ## log verbosity level: debug, info, warn, error, or fatal
  2. log_level = "info"
  3. ## log message prefix (default "[nsqadmin] ")
  4. # log_prefix = ""
  5. ## HTTP header to check for authenticated admin users (default "X_Forwarded_User")
  6. # acl_http_header = ""
  7. ## admin user (may be given multiple times; if specified, only these users will be able to perform privileged actions)
  8. # admin_users = [
  9. # "admin"
  10. # ]
  11. ## A CIDR from which to allow HTTP requests to the /config endpoint (default "127.0.0.1/8")
  12. # allow_config_from_cidr = ""
  13. ## URL base path (default "/")
  14. # base_path = ""
  15. ## timeout for HTTP connect (default 2s)
  16. # http_client_connect_timeout = "2s"
  17. ## timeout for HTTP request (default 5s)
  18. # http_client_request_timeout = "5s"
  19. ## path to certificate file for the HTTP client
  20. # http_client_tls_cert = ""
  21. ## configure the HTTP client to skip verification of TLS certificates
  22. # http_client_tls_insecure_skip_verify = false
  23. ## path to key file for the HTTP client
  24. # http_client_tls_key = ""
  25. ## path to CA file for the HTTP client
  26. # http_client_tls_root_ca_file = ""
  27. ## <addr>:<port> to listen on for HTTP clients
  28. http_address = "0.0.0.0:4171"
  29. ## graphite HTTP address
  30. graphite_url = ""
  31. ## proxy HTTP requests to graphite
  32. proxy_graphite = false
  33. ## prefix used for keys sent to statsd (%s for host replacement, must match nsqd)
  34. statsd_prefix = "nsq.%s"
  35. ## format of statsd counter stats
  36. statsd_counter_format = "stats.counters.%s.count"
  37. ## format of statsd gauge stats
  38. statsd_gauge_format = "stats.gauges.%s"
  39. ## time interval nsqd is configured to push to statsd (must match nsqd)
  40. statsd_interval = "60s"
  41. ## HTTP endpoint (fully qualified) to which POST notifications of admin actions will be sent
  42. notification_http_endpoint = ""
  43. ## nsqlookupd HTTP addresses
  44. nsqlookupd_http_addresses = [
  45. "127.0.0.1:4161"
  46. ]
  47. ## nsqd HTTP addresses (optional)
  48. nsqd_http_addresses = [
  49. "127.0.0.1:4151"
  50. ]