Advertisement
Guest User

Untitled

a guest
Feb 26th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. # This is the main configuration file for the application.
  2. # ~~~~~
  3.  
  4. # Secret key
  5. # ~~~~~
  6. # The secret key is used to secure cryptographics functions.
  7. # If you deploy your application to several instances be sure to use the same key!
  8. application.secret="%APPLICATION_SECRET%"
  9.  
  10. # The application languages
  11. # ~~~~~
  12. application.langs="en"
  13.  
  14. play.modules {
  15. enabled += "play.filters.cors.CORSModule"
  16. }
  17.  
  18. play.mailer {
  19. host="localhost"
  20. host=${?SMTPHOST}
  21. port=${?SMTPPORT}
  22. user=${?SMTPUSER}
  23. password=${?SMTPPASSWORD}
  24. }
  25.  
  26.  
  27. play {
  28. akka {
  29. akka.loggers = ["akka.event.Logging$DefaultLogger", "akka.event.slf4j.Slf4jLogger"]
  30. loglevel = WARNING
  31. actor {
  32. default-dispatcher = {
  33. fork-join-executor {
  34. parallelism-factor = 1.0
  35. parallelism-max = 1
  36. }
  37. }
  38. }
  39. }
  40. }
  41.  
  42.  
  43. # Global object class
  44. # ~~~~~
  45. # Define the Global object class for this application.
  46. # Default to Global in the root package.
  47. # application.global=Global
  48.  
  49. # Router
  50. # ~~~~~
  51. # Define the Router object to use for this application.
  52. # This router will be looked up first when the application is starting up,
  53. # so make sure this is the entry point.
  54. # Furthermore, it's assumed your route file is named properly.
  55. # So for an application router like `my.application.Router`,
  56. # you may need to define a router file `conf/my.application.routes`.
  57. # Default to Routes in the root package (and conf/routes)
  58. # application.router=my.application.Routes
  59.  
  60. # Database configuration
  61. # ~~~~~
  62. # You can declare as many datasources as you want.
  63. # By convention, the default datasource is named `default`
  64. #
  65. # db.default.driver=org.h2.Driver
  66. # db.default.url=${?DBURL}
  67. # db.default.user=sa
  68. # db.default.password=""
  69.  
  70. # Evolutions
  71. # ~~~~~
  72. # You can disable evolutions if needed
  73. # evolutionplugin=disabled
  74.  
  75. # Logger
  76. # ~~~~~
  77. # You can also configure logback (http://logback.qos.ch/),
  78. # by providing an application-logger.xml file in the conf directory.
  79.  
  80. # Root logger:
  81. logger.root=ERROR
  82.  
  83. # Logger used by the framework:
  84. logger.play=INFO
  85.  
  86. # Logger provided to your application:
  87. logger.application=DEBUG
  88.  
  89. # Play default thread pool config
  90. akka {
  91. fork-join-executor {
  92. # The parallelism factor is used to determine thread pool size using the
  93. # following formula: ceil(available processors * factor). Resulting size
  94. # is then bounded by the parallelism-min and parallelism-max values.
  95. parallelism-factor = 1.0
  96.  
  97. # Min number of threads to cap factor-based parallelism number to
  98. parallelism-min = 1
  99.  
  100. # Max number of threads to cap factor-based parallelism number to
  101. parallelism-max = 1
  102. }
  103. }
  104.  
  105. play.filters.cors {
  106. pathPrefixes = ["/project"]
  107. allowedHttpHeaders = [ "Token", "Accept", "Content-Type" ]
  108. allowedHttpMethods = ["GET", "PUT", "OPTIONS", "DELETE", "POST"]
  109. preflightMaxAge = 1 day
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement