Development of an internal social media platform with personalised dashboards for students
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.

server.xml 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <component>
  2. <sectiontype name="ssl" datatype="ZEO.zconfig.server_ssl">
  3. <key name="certificate" datatype="existing-dirpath" required="yes">
  4. <description>
  5. The full path to an SSL certificate file.
  6. </description>
  7. </key>
  8. <key name="key" datatype="existing-dirpath" required="no">
  9. <description>
  10. The full path to an SSL key file for the server certificate.
  11. </description>
  12. </key>
  13. <key name="password-function" required="no">
  14. <description>
  15. Dotted name of importable function for retrieving a password
  16. for the client certificate key.
  17. </description>
  18. </key>
  19. <key name="authenticate" required="yes">
  20. <description>
  21. Path to a file or directory containing client certificates to
  22. be authenticated. This can also be - or SIGNED to require
  23. signed client certificates.
  24. </description>
  25. </key>
  26. </sectiontype>
  27. <sectiontype name="zeo">
  28. <section type="ssl" name="*" attribute="ssl" />
  29. <description>
  30. The content of a ZEO section describe operational parameters
  31. of a ZEO server except for the storage(s) to be served.
  32. </description>
  33. <key name="address" datatype="socket-binding-address"
  34. required="yes">
  35. <description>
  36. The address at which the server should listen. This can be in
  37. the form 'host:port' to signify a TCP/IP connection or a
  38. pathname string to signify a Unix domain socket connection (at
  39. least one '/' is required). A hostname may be a DNS name or a
  40. dotted IP address. If the hostname is omitted, the platform's
  41. default behavior is used when binding the listening socket (''
  42. is passed to socket.bind() as the hostname portion of the
  43. address).
  44. </description>
  45. </key>
  46. <key name="read-only" datatype="boolean"
  47. required="no"
  48. default="false">
  49. <description>
  50. Flag indicating whether the server should operate in read-only
  51. mode. Defaults to false. Note that even if the server is
  52. operating in writable mode, individual storages may still be
  53. read-only. But if the server is in read-only mode, no write
  54. operations are allowed, even if the storages are writable. Note
  55. that pack() is considered a read-only operation.
  56. </description>
  57. </key>
  58. <key name="invalidation-queue-size" datatype="integer"
  59. required="no"
  60. default="100">
  61. <description>
  62. The storage server keeps a queue of the objects modified by the
  63. last N transactions, where N == invalidation_queue_size. This
  64. queue is used to speed client cache verification when a client
  65. disconnects for a short period of time.
  66. </description>
  67. </key>
  68. <key name="invalidation-age" datatype="float" required="no">
  69. <description>
  70. The maximum age of a client for which quick-verification
  71. invalidations will be provided by iterating over the served
  72. storage. This option should only be used if the served storage
  73. supports efficient iteration from a starting point near the
  74. end of the transaction history (e.g. end of file).
  75. </description>
  76. </key>
  77. <key name="transaction-timeout" datatype="integer"
  78. required="no">
  79. <description>
  80. The maximum amount of time to wait for a transaction to commit
  81. after acquiring the storage lock, specified in seconds. If the
  82. transaction takes too long, the client connection will be closed
  83. and the transaction aborted.
  84. </description>
  85. </key>
  86. <key name="pid-filename" datatype="existing-dirpath"
  87. required="no">
  88. <description>
  89. The full path to the file in which to write the ZEO server's Process ID
  90. at startup. If omitted, $INSTANCE/var/ZEO.pid is used.
  91. </description>
  92. <metadefault>$INSTANCE/var/ZEO.pid (or $clienthome/ZEO.pid)</metadefault>
  93. </key>
  94. <key name="client-conflict-resolution" datatype="boolean"
  95. required="no" default="false">
  96. <description>
  97. Flag indicating whether the server should return conflict
  98. errors to the client, for resolution there.
  99. </description>
  100. </key>
  101. <key name="msgpack" datatype="boolean" required="no">
  102. <description>
  103. Use msgpack to serialize and de-serialize ZEO protocol messages.
  104. An advantage of using msgpack for ZEO communication is that
  105. it's a tiny bit faster and a ZEO server can support Python 2
  106. or Python 3 clients (but not both).
  107. msgpack can also be enabled by setting the ``ZEO_MSGPACK``
  108. environment to a non-empty string.
  109. </description>
  110. </key>
  111. </sectiontype>
  112. </component>