decider 2 start

This commit is contained in:
Anibus
2020-11-15 16:54:46 +03:00
commit fda47ec522
219 changed files with 1176 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# https://www.playframework.com/documentation/latest/SecurityHeaders
# Connect to localhost:9000 for content security policy on websockets
play.filters.headers {
contentSecurityPolicy = "connect-src 'self' ws://localhost:9000"
}
# https://www.playframework.com/documentation/latest/AllowedHostsFilter
# Allow requests to localhost:9000.
play.filters.hosts {
allowed = ["localhost:9000"]
}
+33
View File
@@ -0,0 +1,33 @@
<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel"/>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>logs/application.log</file>
<encoder>
<pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%coloredLevel %logger{15} - [%marker] %message%n%xException{10}</pattern>
</encoder>
</appender>
<logger name="play" level="INFO"/>
<!-- actors logging -->
<logger name="akka" level="DEBUG"/>
<logger name="actors" level="DEBUG"/>
<!-- controllers -->
<logger name="controllers" level="DEBUG"/>
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE"/>
</root>
</configuration>
+9
View File
@@ -0,0 +1,9 @@
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
GET / controllers.HomeController.index
GET /ws controllers.HomeController.ws
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)