rest.properties 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. #
  3. # Licensed to the Apache Software Foundation (ASF) under one
  4. # or more contributor license agreements. See the NOTICE file
  5. # distributed with this work for additional information
  6. # regarding copyright ownership. The ASF licenses this file
  7. # to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance
  9. # with the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing,
  14. # software distributed under the License is distributed on an
  15. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. # KIND, either express or implied. See the License for the
  17. # specific language governing permissions and limitations
  18. # under the License.
  19. #
  20. #
  21. #
  22. # ZooKeeper REST Gateway Configuration file
  23. #
  24. rest.port = 9998
  25. #
  26. # Endpoint definition
  27. #
  28. # plain configuration <context-path>;<host-port>
  29. rest.endpoint.1 = /;localhost:2181,localhost:2182
  30. # ... or chrooted to /zookeeper
  31. # rest.endpoint.1 = /;localhost:2181,localhost:2182/zookeeper
  32. # HTTP Basic authentication for this endpoint
  33. # rest.endpoint.1.http.auth = root:root1
  34. # create -e /a data digest:'demo:ojnHEyje6F33LLzGVzg+yatf4Fc=':cdrwa
  35. # any session on this endpoint will use authentication
  36. # rest.endpoint.1.zk.digest = demo:test
  37. # you can easily generate the ACL using Python:
  38. # import sha; sha.sha('demo:test').digest().encode('base64').strip()
  39. #
  40. # ... you can define as many endpoints as you wish
  41. #
  42. # rest.endpoint.2 = /restricted;localhost:2181
  43. # rest.endpoint.2.http.auth = admin:pass
  44. # rest.endpoint.3 = /cluster1;localhost:2181,localhost:2182
  45. # ** you should configure one end-point for each ZooKeeper cluster
  46. # etc.
  47. # Global HTTP Basic Authentication
  48. # You should also enable HTTPS-only access
  49. # The authentication credentials are sent as plain text
  50. # rest.http.auth = guest:guest1
  51. # Uncomment the lines bellow to allow https-only access
  52. # rest.ssl = true
  53. # rest.ssl.jks = keys/rest.jks
  54. # rest.ssl.jks.pass = 123456