Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.72 KB | None | 0 0
  1. ######################################################
  2. # Base Configuration; this provides sane defaults
  3. # for commonly used parts.
  4. # ---------------------------------------------------
  5. #
  6. # Buildout instructions in this file are
  7. # usually only changed by experienced developers.
  8. #
  9. # Beyond here there be dragons!
  10.  
  11. [buildout]
  12. eggs-directory=../buildout-cache/eggs
  13. download-cache=../buildout-cache/downloads
  14.  
  15. # Don't download new things unless needed to satisfy dependencies.
  16. # Override this on the command line with the "-n" flag.
  17. newest = false
  18.  
  19. # pick final releases over newer development releases
  20. prefer-final = true
  21.  
  22. # show picked versions wherever we do an automatic choice
  23. show-picked-versions = true
  24.  
  25. versions = versions
  26.  
  27. # Add additional egg download sources here. dist.plone.org contains archives
  28. # of Plone packages.
  29. find-links =
  30. http://dist.plone.org
  31. http://effbot.org/downloads
  32.  
  33. # buildout.DumpPickedVersions notifies
  34. # you of versions picked by buildout that were not specifically
  35. # pinned.
  36. # buildout.sanitycheck makes sure you're not running buildout
  37. # as root.
  38. extensions =
  39. buildout.sanitycheck
  40.  
  41. ############################################
  42. # Environment Variables
  43. # ---------------------
  44. # Some of the behavior of your Zope/Plone instances are controlled with OS
  45. # environment variables. You may set those here in a key / value format.
  46. # Some common settings:
  47. # * TZ allows you to set a time zone for systems where it's not
  48. # automatically available.
  49. # * zope_i18n_compile_mo_files allows for automatic compilation of
  50. # missing translation files (may slow startup).
  51. # * zope_i18n_allowed_languages allows you to limit the available
  52. # translations.
  53. # * PYTHON_EGG_CACHE determines where zipped python packages are unpacked
  54. # for use.
  55. # * PYTHONHASHSEED determines initial seed for hashes. "random" causes a
  56. # pseudo-random value is used to seed the hashes of str, bytes and datetime
  57. # objects.
  58. environment-vars =
  59. zope_i18n_compile_mo_files true
  60. PYTHON_EGG_CACHE ${buildout:directory}/var/.python-eggs
  61. # PYTHONHASHSEED random
  62. # TZ US/Eastern
  63. # zope_i18n_allowed_languages en es de fr
  64.  
  65. [instance_base]
  66. # Use this section to install and configure a Zope operating
  67. # instance.
  68. # For options see http://pypi.python.org/pypi/plone.recipe.zope2instance
  69.  
  70. # The line below sets only the initial password. It will not change an
  71. # existing password.
  72. user = ${buildout:user}
  73. # if we try to start as root, Zope will switch to the user below
  74. effective-user = ${buildout:effective-user}
  75. # change debug-mode to "on" to run in development mode.
  76. # starting in foreground (fg) mode is a better way to do this.
  77. debug-mode = off
  78. # change verbose-security to "on" for detailed security
  79. # errors while developing
  80. verbose-security = ${buildout:verbose-security}
  81. # change deprecation-warnings to "on" to get log warnings
  82. # for deprecated usages.
  83. deprecation-warnings = ${buildout:deprecation-warnings}
  84.  
  85. # storage locations
  86. var = ${buildout:var-dir}
  87. blob-storage = ${:var}/blobstorage
  88.  
  89. # Comment the next four lines out if you don't need
  90. # automatic log rotation for event and access logs.
  91. event-log-max-size = 5 MB
  92. event-log-old-files = 5
  93. access-log-max-size = 20 MB
  94. access-log-old-files = 5
  95.  
  96. # If you want Zope to know about any additional eggs, list them here.
  97. # e.g. eggs = ${buildout:eggs} my.package
  98. eggs =
  99. ${buildout:eggs}
  100.  
  101. # If you want to register ZCML slugs for any packages, list them here.
  102. # e.g. zcml = my.package my.other.package
  103. zcml = ${buildout:zcml}
  104.  
  105. products = ${buildout:directory}/products
  106.  
  107. # You may also control the environment variables for the instance.
  108. environment-vars = ${buildout:environment-vars}
  109.  
  110. [zeoserver_base]
  111. # Use this section to install and configure a Zope
  112. # Enterprise Objects server.
  113. # For options see http://pypi.python.org/pypi/plone.recipe.zeoserver
  114. #
  115. # If we try to start as root, Zope will switch to the user below
  116. effective-user = ${buildout:effective-user}
  117. # Set storage
  118. var = ${buildout:var-dir}
  119. blob-storage = ${buildout:var-dir}/blobstorage
  120. # Put the log, pid and socket files in var/zeoserver
  121. zeo-log = ${buildout:var-dir}/zeoserver/zeoserver.log
  122. pid-file = ${buildout:var-dir}/zeoserver/zeoserver.pid
  123. socket-name = ${buildout:var-dir}/zeoserver/zeo.zdsock
  124.  
  125. [client_base]
  126. # Use this section to install and configure a ZEO client
  127. # instance.
  128. # For options see http://pypi.python.org/pypi/plone.recipe.zope2instance
  129.  
  130. # The line below sets only the initial password. It will not change an
  131. # existing password.
  132. user = ${buildout:user}
  133. # if we try to start as root, Zope will switch to the user below
  134. effective-user = ${buildout:effective-user}
  135. # change debug-mode to "on" to run in development mode.
  136. # starting in foreground (fg) mode is a better way to do this.
  137. debug-mode = off
  138. # change verbose-security to "on" for detailed security
  139. # errors while developing
  140. verbose-security = ${buildout:verbose-security}
  141. # change deprecation-warnings to "on" to get log warnings
  142. # for deprecated usages.
  143. deprecation-warnings = ${buildout:deprecation-warnings}
  144.  
  145. # base locations
  146. var = ${buildout:var-dir}
  147. blob-storage = ${:var}/blobstorage
  148.  
  149. # Comment the next four lines out if you don't need
  150. # automatic log rotation for event and access logs.
  151. event-log-max-size = 5 MB
  152. event-log-old-files = 5
  153. access-log-max-size = 20 MB
  154. access-log-old-files = 5
  155.  
  156. # If you want Zope to know about any additional eggs, list them here.
  157. # e.g. eggs = ${buildout:eggs} my.package
  158. eggs =
  159. ${buildout:eggs}
  160.  
  161. # If you want to register ZCML slugs for any packages, list them here.
  162. # e.g. zcml = my.package my.other.package
  163. zcml = ${buildout:zcml}
  164.  
  165. products = ${buildout:directory}/products
  166.  
  167. # You may also control the environment variables for the instance.
  168. environment-vars = ${buildout:environment-vars}
  169.  
  170. zeo-client = true
  171. # shared blobs are much faster if we're on the same server.
  172. # if not, turn it off.
  173. shared-blob = on
  174.  
  175. # defer early binding to port; may improve load balancer behavior on restarts
  176. http-fast-listen = off
  177.  
  178. # Put the log, pid, lock files in var/client1
  179. event-log = ${buildout:var-dir}/${:_buildout_section_name_}/event.log
  180. z2-log = ${buildout:var-dir}/${:_buildout_section_name_}/Z2.log
  181. pid-file = ${buildout:var-dir}/${:_buildout_section_name_}/${:_buildout_section_name_}.pid
  182. lock-file = ${buildout:var-dir}/${:_buildout_section_name_}/${:_buildout_section_name_}.lock
  183.  
  184. [repozo]
  185. # This recipe builds the repozo script for non-zeo installations.
  186. recipe = zc.recipe.egg
  187. eggs = ZODB3
  188. scripts = repozo
  189.  
  190. [backup]
  191. # This recipe builds the backup, restore and snapshotbackup commands.
  192. # For options see http://pypi.python.org/pypi/collective.recipe.backup
  193. recipe = collective.recipe.backup
  194. location = ${buildout:backups-dir}/backups
  195. blobbackuplocation = ${buildout:backups-dir}/blobstoragebackups
  196. snapshotlocation = ${buildout:backups-dir}/snapshotbackups
  197. blobsnapshotlocation = ${buildout:backups-dir}/blobstoragesnapshots
  198. datafs = ${buildout:var-dir}/filestorage/Data.fs
  199. blob-storage = ${buildout:var-dir}/blobstorage
  200.  
  201. [setpermissions]
  202. # This recipe is used to set permissions for root mode installs
  203. # For options see http://pypi.python.org/pypi/plone.recipe.command
  204. recipe = plone.recipe.command
  205. command =
  206. # Dummy references to force this to execute after referenced parts
  207. echo ${backup:location} ${unifiedinstaller:need-sudo} > /dev/null
  208. chmod 600 .installed.cfg
  209. # Make sure anything we've created in var is r/w by our group
  210. find ${buildout:var-dir} -type d -exec chmod 770 {} \; 2> /dev/null
  211. find ${buildout:var-dir} -type f -exec chmod 660 {} \; 2> /dev/null
  212. find ${buildout:backups-dir} -type d -exec chmod 770 {} \; 2> /dev/null
  213. find ${buildout:backups-dir} -type f -exec chmod 660 {} \; 2> /dev/null
  214. chmod 754 ${buildout:directory}/bin/*
  215. update-command = ${:command}
  216.  
  217. [zopepy]
  218. # installs a zopepy python interpreter that runs with your
  219. # full Zope environment
  220. recipe = zc.recipe.egg
  221. eggs = ${buildout:eggs}
  222. interpreter = zopepy
  223. scripts = zopepy
  224.  
  225. [unifiedinstaller]
  226. # This recipe installs the plonectl script and a few other convenience
  227. # items.
  228. # For options see http://pypi.python.org/pypi/plone.recipe.unifiedinstaller
  229. recipe = plone.recipe.unifiedinstaller
  230. user = ${buildout:user}
  231. effective-user = ${buildout:effective-user}
  232. buildout-user = ${buildout:buildout-user}
  233. need-sudo = ${buildout:need-sudo}
  234.  
  235. [precompiler]
  236. # This recipe is used in production installs to compile
  237. # .py and .po files so that the daemon doesn't try to do it.
  238. # For options see http://pypi.python.org/pypi/plone.recipe.precompiler
  239. recipe = plone.recipe.precompiler
  240. eggs = ${buildout:eggs}
  241. compile-mo-files = true
  242. extra-paths = ${buildout:directory}/products
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement