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.

67 lines
1.9 KiB

  1. # Put this file to one of the location, with descending priority
  2. # ./security.toml
  3. # $HOME/.seaweedfs/security.toml
  4. # /etc/seaweedfs/security.toml
  5. # this file is read by master, volume server, and filer
  6. # the jwt signing key is read by master and volume server.
  7. # a jwt defaults to expire after 10 seconds.
  8. [jwt.signing]
  9. key = ""
  10. expires_after_seconds = 10 # seconds
  11. # by default, if the signing key above is set, the Volume UI over HTTP is disabled.
  12. # by setting ui.access to true, you can re-enable the Volume UI. Despite
  13. # some information leakage (as the UI is unauthenticted), this should not
  14. # pose a security risk.
  15. [access]
  16. ui = false
  17. # jwt for read is only supported with master+volume setup. Filer does not support this mode.
  18. [jwt.signing.read]
  19. key = ""
  20. expires_after_seconds = 10 # seconds
  21. # all grpc tls authentications are mutual
  22. # the values for the following ca, cert, and key are paths to the PERM files.
  23. # the host name is not checked, so the PERM files can be shared.
  24. [grpc]
  25. ca = ""
  26. # Set wildcard domain for enable TLS authentication by common names
  27. allowed_wildcard_domain = "" # .mycompany.com
  28. [grpc.volume]
  29. cert = ""
  30. key = ""
  31. allowed_commonNames = "" # comma-separated SSL certificate common names
  32. [grpc.master]
  33. cert = ""
  34. key = ""
  35. allowed_commonNames = "" # comma-separated SSL certificate common names
  36. [grpc.filer]
  37. cert = ""
  38. key = ""
  39. allowed_commonNames = "" # comma-separated SSL certificate common names
  40. [grpc.msg_broker]
  41. cert = ""
  42. key = ""
  43. allowed_commonNames = "" # comma-separated SSL certificate common names
  44. # use this for any place needs a grpc client
  45. # i.e., "weed backup|benchmark|filer.copy|filer.replicate|mount|s3|upload"
  46. [grpc.client]
  47. cert = ""
  48. key = ""
  49. # volume server https options
  50. # Note: work in progress!
  51. # this does not work with other clients, e.g., "weed filer|mount" etc, yet.
  52. [https.client]
  53. enabled = true
  54. [https.volume]
  55. cert = ""
  56. key = ""