-
Notifications
You must be signed in to change notification settings - Fork 73
/
application.conf
115 lines (98 loc) · 2.83 KB
/
application.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# This is the main configuration file for the application.
# ~~~~~
# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
#
# This must be changed for production, but we recommend not changing it in this file.
#
# See http://www.playframework.com/documentation/latest/ApplicationSecret for more details.
play.crypto.secret = "changeme"
play.http.secret.key = "changeme"
# The application languages
# ~~~~~
play.i18n.langs = [ "en" ]
# 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)
# play.http.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="jdbc:h2:mem:play"
# db.default.username=sa
# db.default.password=""
# Evolutions
# ~~~~~
# You can disable evolutions if needed
# play.evolutions.enabled=false
# You can disable evolutions for a specific datasource if necessary
# play.evolutions.db.default.enabled=false
# Artery Reference: https://pekko.apache.org/docs/pekko/current/remoting-artery.html
pekko {
actor {
provider = remote
allow-java-serialization = on
warn-about-java-serializer-usage = false
}
remote {
artery {
transport = tcp
canonical {
hostname = "127.0.0.1"
port = 0
}
}
}
}
websocketActorSystem {
pekko {
actor {
provider = remote
allow-java-serialization = on
warn-about-java-serializer-usage = false
}
remote {
artery {
transport = tcp
canonical {
hostname = "127.0.0.1" #your private IP here
port = 10999
}
}
}
}
}
my-pinned-dispatcher {
executor = "thread-pool-executor"
type = PinnedDispatcher
}
mysqldb.host="localhost:3306"
sim.pekko-actor.host="127.0.0.1:2552"
google.mapKey="<your key>"
google.apiKey="<your key>"
play.allowGlobalApplication = true
play.filters.disabled += "play.filters.csrf.CSRFFilter"
play.filters.enabled += "play.filters.gzip.GzipFilter"
play.filters.hosts {
allowed = ["."]
}
play.filters.gzip {
contentType {
# If non empty, then a response will only be compressed if its content type is in this list.
whiteList = [ "text/*", "application/javascript", "application/json" ]
# The black list is only used if the white list is empty.
# Compress all responses except the ones whose content type is in this list.
blackList = []
}
}
bannerEnabled = false