application.conf 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. # This is the main configuration file for the application.
  2. # ~~~~~
  3. application.name=play-1.2.5
  4. # Application mode
  5. # ~~~~~
  6. # Set to dev to enable instant reloading and other development help.
  7. # Otherwise set to prod.
  8. application.mode=dev
  9. %prod.application.mode=prod
  10. # Secret key
  11. # ~~~~~
  12. # The secret key is used to secure cryptographics functions
  13. # If you deploy your application to several instances be sure to use the same key !
  14. application.secret=p7Abj8rpexZmmC8iPsY2PlXSo1xtHFhLKHRCHpE1ZqEgRU5TIHPcEbaryoj16vi8
  15. # i18n
  16. # ~~~~~
  17. # Define locales used by your application.
  18. # You can then place localized messages in conf/messages.{locale} files
  19. # application.langs=fr,en,ja
  20. # Date format
  21. # ~~~~~
  22. date.format=yyyy-MM-dd
  23. # date.format.fr=dd/MM/yyyy
  24. # Server configuration
  25. # ~~~~~
  26. # If you need to change the HTTP port, uncomment this (default is set to 9000)
  27. # http.port=9000
  28. #modified to match previous port on test
  29. http.port=8080
  30. #
  31. # By default the server listen for HTTP on the wilcard address.
  32. # You can restrict this.
  33. # http.address=127.0.0.1
  34. #
  35. # Use this if you don't host your Play application at the root of the domain
  36. # you're serving it from. This parameter has no effect when deployed as a
  37. # war, because the path will be handled by the application server.
  38. # http.path=/
  39. # Session configuration
  40. # ~~~~~~~~~~~~~~~~~~~~~~
  41. # By default, session will be written to the transient PLAY_SESSION cookie.
  42. # The cookies are not secured by default, only set it to true
  43. # if you're serving your pages through https.
  44. # application.session.cookie=PLAY
  45. # application.session.maxAge=1h
  46. # application.session.secure=false
  47. # Session/Cookie sharing between subdomain
  48. # ~~~~~~~~~~~~~~~~~~~~~~
  49. # By default a cookie is only valid for a specific domain. By setting
  50. # application.defaultCookieDomain to '.example.com', the cookies
  51. # will be valid for all domains ending with '.example.com', ie:
  52. # foo.example.com and bar.example.com
  53. # application.defaultCookieDomain=.example.com
  54. # JVM configuration
  55. # ~~~~~
  56. # Define which port is used by JPDA when application is in debug mode (default is set to 8000)
  57. # jpda.port=8000
  58. #
  59. # Java source level => 1.5, 1.6 or 1.7 (experimental)
  60. # java.source=1.5
  61. # Log level
  62. # ~~~~~
  63. # Specify log level for your application.
  64. # If you want a very customized log, create a log4j.properties file in the conf directory
  65. # application.log=INFO
  66. #
  67. # More logging configuration
  68. # application.log.path=/log4j.properties
  69. # application.log.system.out=off
  70. # Database configuration
  71. # ~~~~~
  72. # Enable a database engine if needed.
  73. #
  74. # To quickly set up a development database, use either:
  75. # - mem : for a transient in memory database (H2 in memory)
  76. # - fs : for a simple file written database (H2 file stored)
  77. # db=mem
  78. #
  79. # To connect to a local MySQL5 database, use:
  80. # db=mysql://user:pwd@host/database
  81. #
  82. # To connect to a local PostgreSQL9 database, use:
  83. # db=postgres://user:pwd@host/database
  84. #
  85. # If you need a full JDBC configuration use the following :
  86. # db.url=jdbc:postgresql:database_name
  87. # db.driver=org.postgresql.Driver
  88. # db.user=root
  89. # db.pass=secret
  90. #
  91. # Connections pool configuration :
  92. db.pool.timeout=1000
  93. db.pool.maxSize=30
  94. db.pool.minSize=10
  95. #
  96. # If you want to reuse an existing Datasource from your application server, use:
  97. # db=java:/comp/env/jdbc/myDatasource
  98. #
  99. # When using an existing Datasource, it's sometimes needed to destroy it when
  100. # the application is stopped. Depending on the datasource, you can define a
  101. # generic "destroy" method :
  102. # db.destroyMethod=close
  103. db.driver= com.mysql.jdbc.Driver
  104. db.url=jdbc:mysql://127.0.0.1:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true&useSSL=false
  105. #db.url=jdbc:mysql://127.0.0.1:3306/hello_world
  106. db.user=benchmarkdbuser
  107. db.pass=benchmarkdbpass
  108. #db.jndiName=DefaultDS
  109. #db.default.driver= com.mysql.jdbc.Driver
  110. #db.default.url=jdbc:mysql://127.0.0.1:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
  111. #db.default.user=benchmarkdbuser
  112. #db.default.pass=benchmarkdbpass
  113. #db.default.jndiName=DefaultDS
  114. # JPA Configuration (Hibernate)
  115. # ~~~~~
  116. #
  117. # Specify the custom JPA dialect to use here (default to guess):
  118. # jpa.dialect=org.hibernate.dialect.PostgreSQLDialect
  119. #
  120. # Specify the ddl generation pattern to use. Set to none to disable it
  121. # (default to update in DEV mode, and none in PROD mode):
  122. # jpa.ddl=update
  123. #
  124. # Debug SQL statements (logged using DEBUG level):
  125. # jpa.debugSQL=true
  126. #
  127. # You can even specify additional hibernate properties here:
  128. # hibernate.use_sql_comments=true
  129. # ...
  130. #
  131. # Store path for Blob content
  132. attachments.path=data/attachments
  133. # Memcached configuration
  134. # ~~~~~
  135. # Enable memcached if needed. Otherwise a local cache is used.
  136. # memcached=enabled
  137. #
  138. # Specify memcached host (default to 127.0.0.1:11211)
  139. # memcached.host=127.0.0.1:11211
  140. #
  141. # Or you can specify multiple host to build a distributed cache
  142. # memcached.1.host=127.0.0.1:11211
  143. # memcached.2.host=127.0.0.1:11212
  144. #
  145. # Use plain SASL to authenticate for memcached
  146. # memcached.user=
  147. # memcached.password=
  148. # HTTP Response headers control for static files
  149. # ~~~~~
  150. # Set the default max-age, telling the user's browser how long it should cache the page.
  151. # Default is 3600 (one hour). Set it to 0 to send no-cache.
  152. # This is only read in prod mode, in dev mode the cache is disabled.
  153. # http.cacheControl=3600
  154. # If enabled, Play will generate entity tags automatically and send a 304 when needed.
  155. # Default is true, set it to false to deactivate use of entity tags.
  156. # http.useETag=true
  157. # Custom mime types
  158. # mimetype.xpi=application/x-xpinstall
  159. # WS configuration
  160. # ~~~~~
  161. # Default engine is Async Http Client, uncomment to use
  162. # the JDK's internal implementation
  163. # webservice = urlfetch
  164. # If you need to set proxy params for WS requests
  165. # http.proxyHost = localhost
  166. # http.proxyPort = 3128
  167. # http.proxyUser = jojo
  168. # http.proxyPassword = jojo
  169. # Mail configuration
  170. # ~~~~~
  171. # Default is to use a mock Mailer
  172. mail.smtp=mock
  173. # Or, specify mail host configuration
  174. # mail.smtp.host=127.0.0.1
  175. # mail.smtp.user=admin
  176. # mail.smtp.pass=
  177. # mail.smtp.channel=ssl
  178. # Url-resolving in Jobs
  179. # ~~~~~~
  180. # When rendering templates with reverse-url-resoling (@@{..}) in Jobs (which do not have an inbound Http.Request),
  181. # ie if sending a HtmlMail, Play need to know which url your users use when accessing your app.
  182. # %test.application.baseUrl=http://localhost:9000/
  183. # %prod.application.baseUrl=http://www.yourdomain.com/
  184. # Jobs executor
  185. # ~~~~~~
  186. # Size of the Jobs pool
  187. # play.jobs.pool=10
  188. # Execution pool
  189. # ~~~~~
  190. # Default to 1 thread in DEV mode or (nb processors + 1) threads in PROD mode.
  191. # Try to keep a low as possible. 1 thread will serialize all requests (very useful for debugging purpose)
  192. # play.pool=3
  193. # Open file from errors pages
  194. # ~~~~~
  195. # If your text editor supports opening files by URL, Play! will
  196. # dynamically link error pages to files
  197. #
  198. # Example, for textmate:
  199. # play.editor=txmt://open?url=file://%s&line=%s
  200. # Testing. Set up a custom configuration for test mode
  201. # ~~~~~
  202. #%test.module.cobertura=${play.path}/modules/cobertura
  203. %test.application.mode=dev
  204. %test.db.url=jdbc:h2:mem:play;MODE=MYSQL;LOCK_MODE=0
  205. %test.jpa.ddl=create
  206. %test.mail.smtp=mock