security.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. # jwt for read is only supported with master+volume setup. Filer does not support this mode.
  12. [jwt.signing.read]
  13. key = ""
  14. expires_after_seconds = 10 # seconds
  15. # all grpc tls authentications are mutual
  16. # the values for the following ca, cert, and key are paths to the PERM files.
  17. # the host name is not checked, so the PERM files can be shared.
  18. [grpc]
  19. ca = ""
  20. # Set wildcard domain for enable TLS authentication by common names
  21. allowed_wildcard_domain = "" # .mycompany.com
  22. [grpc.volume]
  23. cert = ""
  24. key = ""
  25. allowed_commonNames = "" # comma-separated SSL certificate common names
  26. [grpc.master]
  27. cert = ""
  28. key = ""
  29. allowed_commonNames = "" # comma-separated SSL certificate common names
  30. [grpc.filer]
  31. cert = ""
  32. key = ""
  33. allowed_commonNames = "" # comma-separated SSL certificate common names
  34. [grpc.msg_broker]
  35. cert = ""
  36. key = ""
  37. allowed_commonNames = "" # comma-separated SSL certificate common names
  38. # use this for any place needs a grpc client
  39. # i.e., "weed backup|benchmark|filer.copy|filer.replicate|mount|s3|upload"
  40. [grpc.client]
  41. cert = ""
  42. key = ""
  43. # volume server https options
  44. # Note: work in progress!
  45. # this does not work with other clients, e.g., "weed filer|mount" etc, yet.
  46. [https.client]
  47. enabled = true
  48. [https.volume]
  49. cert = ""
  50. key = ""