env.properties 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. ###############################################################################
  2. # hibernate.dialect <Hibernate Dialect class name>
  3. #
  4. # The Hibernate dialect that matches the database you're using with iEat.
  5. #
  6. # Postgres: org.hibernate.dialect.PostgreSQLDialect
  7. # MySQL: org.hibernate.dialect.MySQLDialect
  8. hibernate.dialect=org.hibernate.dialect.DB2Dialect
  9. ###############################################################################
  10. # recipe.image.base.path <directory path>
  11. #
  12. # The path to a directory that the application will manage the uploaded
  13. # recipe images. This directory must allow write access to the user or group
  14. # the application runs as, as it will try to create image file here.
  15. recipe.image.base.path=img/
  16. ###############################################################################
  17. # recipe.image.base.url <relative url>
  18. #
  19. # A URL, relative to the ieat webapp URL, to serve images from. Image URLs
  20. # will be constructed by appending the image name to this path. For example
  21. # for a recipe image named "123.jpg" and a recipe.image.base.url of "/img/"
  22. # and a web context of "/ieat" then the image URL will be "/ieat/img/123.jpg".
  23. recipe.image.base.url=/img/
  24. ###############################################################################
  25. # hibernate.show_sql <boolean>
  26. #
  27. # Set to 'true' to enable Hibernate SQL debugging.
  28. hibernate.show_sql=true
  29. ###############################################################################
  30. # lucene.index.base.path <directory path>
  31. #
  32. # The path to a directory that the application will manage the Lucene search
  33. # indices. This directory must allow write access to the user or group the
  34. # application runs as, as it will try to create directories and files here.
  35. lucene.index.base.path=ieat-index
  36. ###############################################################################
  37. # lucene.index.optimize.trigger <int>
  38. #
  39. # The number of items to index before triggering a Lucene index optimization.
  40. lucene.index.optimize.trigger=50
  41. ###############################################################################
  42. # lucene.index.optimize.never <boolean>
  43. #
  44. # If true, then never try to optimize the Lucene index for searches. If false
  45. # then allow optimizing according to normal parameters (including after re-
  46. # indexing an entire index.
  47. lucene.index.optimize.never=false
  48. ###############################################################################
  49. # lucene.update.buffer.size <int>
  50. #
  51. # The number of index update requests to buffer before actually performing the
  52. # index requests. This has the effect of "batch" indexing, and if set to the
  53. # value of 1 this mode will be disabled and index requests will occur as they
  54. # arrive to the index service.
  55. lucene.update.buffer.size=1
  56. ###############################################################################
  57. # lucene.update.buffer.flush <milliseconds>
  58. #
  59. # This sets the number of milliseconds the index buffers will be flushed,
  60. # i.e. any unprocessed items will be indexed even if the index buffer is not
  61. # full. Any value greater than 0 will cause the application to flush the
  62. # buffers after that many milliseconds has past. Setting this greater than
  63. # 0 only makes sense if index.update.buffer.size is also set to something
  64. # greater than 1, since when then buffer size is 1 there will really isn't
  65. # a "buffer" to flush.
  66. lucene.update.buffer.flush=0
  67. ###############################################################################
  68. # lucene.snowball.stemmer.name <name>
  69. #
  70. # The Lucene Snowball stemmer name to use, i.e. language to support.
  71. # See the Lucene JavaDocs on org.apache.lucene.analysis.snowball.SnowballFilter
  72. # for the available languages and more information.
  73. lucene.snowball.stemmer.name=English
  74. ###############################################################################
  75. # index.timezone.java <time zone>
  76. # index.timezone.sql <time zone>
  77. #
  78. # Set these to the time zone to use in the index. The index.timezone.java is
  79. # to be used in getting java.util.TimeZone instances, and should be set to a
  80. # time zone offet from GMT so as not to make use of daylight savings time. The
  81. # index.timezone.sql should be set to the same time zone, but in a format
  82. # recognized by the backend database (or JDBC driver) for executing SQL using
  83. # the same time zone as used by the index.
  84. index.timezone.java=GMT+12
  85. index.timezone.sql=+12
  86. ###############################################################################
  87. # crypto.salt <string>
  88. #
  89. # The "salt" used for encrypting passwords. Set this to a random string of
  90. # characters as desired, but beware the more characters used the longer the
  91. # encrypted passwords will become and they can end up loger than the default
  92. # database column width defined for user passwords. Around 20 characters is a
  93. # good maximum to keep in mind. If you don't want to use any salt then set this
  94. # to an empty value.
  95. crypto.salt=#$8e#&*fJ39eJE(3j#E()
  96. ###############################################################################
  97. # crypto.provider <string>
  98. #
  99. # The JCE provider to use. The default one included with Java is 'SunJCE'.
  100. # Only change this if you want to use a different provider (for example to use
  101. # a different encryption scheme).
  102. crypto.provider=SunJCE
  103. ###############################################################################
  104. # crypto.key.type <string>
  105. #
  106. # The JCE secret key type used for password-based encryption schemes. For
  107. # example: 'PBEWithMD5AndDES'. Also see the crypto.pge.salt property.
  108. crypto.key.type=PBEWithMD5AndDES
  109. ###############################################################################
  110. # crypto.cipher.type <string>
  111. #
  112. # The JCE cipher to use for encryption. For example: 'PBEWithMD5AndDES'
  113. crypto.cipher.type=PBEWithMD5AndDES
  114. ###############################################################################
  115. # crypto.key <string>
  116. #
  117. # The password to use for password-based encryption.
  118. crypto.key=34i.X34U(#*=>jys
  119. ###############################################################################
  120. # crypto.pbe.salt <string>
  121. #
  122. # The salt to use for password-based encryption schemes. The encryption
  123. # scheme may have specific length requirements. For example the
  124. # PBEWithMD5AndDES key type requires an 8-byte salt length.
  125. crypto.pbe.salt=_1dk3P6s
  126. ###############################################################################
  127. # smtp.host <inet host>
  128. #
  129. # The SMTP server to use for sending mail messages to. Note that be default
  130. # iEat is configured to lookup a javax.mail.Session from JNDI and this
  131. # property will not be used. It is used, however, by the JUnit test cases.
  132. smtp.host=localhost
  133. ###############################################################################
  134. # mail.from <email>
  135. #
  136. # The email address to send mail from.
  137. mail.from=ieat@localhost.local
  138. ###############################################################################
  139. # url.registration.confirm <url>
  140. #
  141. # The relative URL to confirm an account registration. This URL should inlcude
  142. # two variables: $[user.login] to hold the login of the user being confirmed,
  143. # and $[result] for the confirmation code. For example:
  144. # '/confirmAccount.do?login=$[user.login]&amp;code=$[result]'. If you set up
  145. # an Apache rewrite rule, you can shorten this URL, for example
  146. # '/confirm/$[user.login]/$[result]'.
  147. url.registration.confirm=/confirmAccount.do?login=$[user.login]&code=$[result]
  148. ###############################################################################
  149. # url.welcome <url>
  150. #
  151. # The relative URL to use in the welcome email template. Typically this will
  152. # just be the home page.
  153. url.welcome=/home.do
  154. ###############################################################################
  155. # url.forgot-password.confirm <url>
  156. #
  157. # The relative URL to confirm a forgotten password. This URL should inlcude
  158. # two variables: $[user.login] to hold the login of the user being confirmed,
  159. # and $[result] for the confirmation code. For example:
  160. # '/confirmForgotPassword.do?login=$[user.login]&amp;code=$[result]'. If you set up
  161. # an Apache rewrite rule, you can shorten this URL, for example
  162. # '/confirmPassword/$[user.login]/$[result]'.
  163. url.forgot-password.confirm=/confirmForgotPassword.do?login=$[user.login]&code=$[result]
  164. ###############################################################################
  165. # xslt.cache <boolean>
  166. #
  167. # Set to 'false' to help debug XSLT changes, so each request to an XSLT view
  168. # will cause the XSLT templates to be reloaded. This is not thread-safe and
  169. # not recommended for a production environment, but is useful when doing
  170. # development on XSLT views.
  171. xslt.cache=true
  172. ###############################################################################
  173. # feature.registration <boolean>
  174. #
  175. # Set to 'true' to enable user self-registration. Set to 'false' to disable
  176. # this feature; you will have to create users manually by logging in as an
  177. # admin user.
  178. feature.registration=false
  179. ###############################################################################
  180. # feature.anonymous <boolean>
  181. #
  182. # Set to 'true' to enable anonymous users to browse and search for recipes.
  183. # Set to 'false' to disable this feature; users will have to have a valid
  184. # account and login in order to do anything.
  185. feature.anonymous=true
  186. ###############################################################################
  187. # feature.comments <boolean>
  188. #
  189. # Set to 'true' to enable the viewing and adding of recipe comments. Comments
  190. # can be viewed by anonymous users but only logged in users can add comments.
  191. # Set to 'false' to disable this feature, so viewing and adding comments will
  192. # not be available.
  193. feature.comments=true
  194. ###############################################################################
  195. # feature.recipeimages <boolean>
  196. #
  197. # Set to 'true' to enable the uploading and management of image files
  198. # associated with recipes. This requires the applicaiton have write-access
  199. # to the directory defined by the recipe.image.base.path property.
  200. feature.recipeimages=false
  201. ###############################################################################
  202. # setup.requireadmin <boolean>
  203. #
  204. # Set to 'true' to require a logged-in admin user to access the setup wizard.
  205. # When the setup wizard completes it will change this property to 'true' in
  206. # the database so people can not simply re-configure iEat by going to the
  207. # setup URL.
  208. setup.requireadmin=false