Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is the main configuration file for the application.
- # ~~~~~
- # Secret key
- # ~~~~~
- # The secret key is used to secure cryptographics functions.
- # If you deploy your application to several instances be sure to use the same key!
- application.secret="%APPLICATION_SECRET%"
- # The application languages
- # ~~~~~
- application.langs="en"
- play.modules {
- enabled += "play.filters.cors.CORSModule"
- }
- play.mailer {
- host="localhost"
- host=${?SMTPHOST}
- port=${?SMTPPORT}
- user=${?SMTPUSER}
- password=${?SMTPPASSWORD}
- }
- play {
- akka {
- akka.loggers = ["akka.event.Logging$DefaultLogger", "akka.event.slf4j.Slf4jLogger"]
- loglevel = WARNING
- actor {
- default-dispatcher = {
- fork-join-executor {
- parallelism-factor = 1.0
- parallelism-max = 1
- }
- }
- }
- }
- }
- # Global object class
- # ~~~~~
- # Define the Global object class for this application.
- # Default to Global in the root package.
- # application.global=Global
- # Router
- # ~~~~~
- # Define the Router object to use for this application.
- # This router will be looked up first when the application is starting up,
- # so make sure this is the entry point.
- # Furthermore, it's assumed your route file is named properly.
- # So for an application router like `my.application.Router`,
- # you may need to define a router file `conf/my.application.routes`.
- # Default to Routes in the root package (and conf/routes)
- # application.router=my.application.Routes
- # Database configuration
- # ~~~~~
- # You can declare as many datasources as you want.
- # By convention, the default datasource is named `default`
- #
- # db.default.driver=org.h2.Driver
- # db.default.url=${?DBURL}
- # db.default.user=sa
- # db.default.password=""
- # Evolutions
- # ~~~~~
- # You can disable evolutions if needed
- # evolutionplugin=disabled
- # Logger
- # ~~~~~
- # You can also configure logback (http://logback.qos.ch/),
- # by providing an application-logger.xml file in the conf directory.
- # Root logger:
- logger.root=ERROR
- # Logger used by the framework:
- logger.play=INFO
- # Logger provided to your application:
- logger.application=DEBUG
- # Play default thread pool config
- akka {
- fork-join-executor {
- # The parallelism factor is used to determine thread pool size using the
- # following formula: ceil(available processors * factor). Resulting size
- # is then bounded by the parallelism-min and parallelism-max values.
- parallelism-factor = 1.0
- # Min number of threads to cap factor-based parallelism number to
- parallelism-min = 1
- # Max number of threads to cap factor-based parallelism number to
- parallelism-max = 1
- }
- }
- play.filters.cors {
- pathPrefixes = ["/project"]
- allowedHttpHeaders = [ "Token", "Accept", "Content-Type" ]
- allowedHttpMethods = ["GET", "PUT", "OPTIONS", "DELETE", "POST"]
- preflightMaxAge = 1 day
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement