Compare commits
No commits in common. "4f81e7f259b87e4b6036c97e9d6124cfc81cd30f" and "d8722ae10565a15c010375bb5bd3a5ce8d963f22" have entirely different histories.
4f81e7f259
...
d8722ae105
@ -1,6 +0,0 @@
|
|||||||
include "wtest_application"
|
|
||||||
|
|
||||||
compress.devices {
|
|
||||||
count = 1
|
|
||||||
currentValue = 0
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
|
|
||||||
play.http.secret.key="qrzrCr;PbI5tzSmTZ:BT3OCiSpG=pF7T0<;TDB^wKo8M]I_UdyeEbNm?lPFILJVG"
|
|
||||||
play.i18n.langs=[ "en" ]
|
|
||||||
|
|
||||||
|
|
||||||
play.modules {
|
|
||||||
enabled += "modules.AppModule"
|
|
||||||
enabled += "tasks.TrackTasksModule"
|
|
||||||
enabled += "tasks.GpsWritingTasksModule"
|
|
||||||
enabled += "tasks.TableTasksModule"
|
|
||||||
}
|
|
||||||
|
|
||||||
play.evolutions {
|
|
||||||
enabled = true
|
|
||||||
autoApply = true
|
|
||||||
}
|
|
||||||
|
|
||||||
slick {
|
|
||||||
dbs {
|
|
||||||
default {
|
|
||||||
profile = "slick.jdbc.PostgresProfile$"
|
|
||||||
db {
|
|
||||||
driver = "org.postgresql.Driver"
|
|
||||||
url = "jdbc:postgresql://wtest-gps.crwogqkovwba.ap-southeast-1.rds.amazonaws.com:5432/fms_gps"
|
|
||||||
user = "postgres"
|
|
||||||
password = "uXQM1D1QuV45I8Zw"
|
|
||||||
connectionTimeout = "10000"
|
|
||||||
numThreads = 10 // evolutions is 20
|
|
||||||
maxConnections = 10 // evolutions is 5*numThread
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Filter
|
|
||||||
play.filters {
|
|
||||||
enabled += "play.filters.cors.CORSFilter"
|
|
||||||
enabled += "play.filters.hosts.AllowedHostsFilter"
|
|
||||||
cors {
|
|
||||||
pathPrefixes = ["/"]
|
|
||||||
allowedHttpMethods = ["POST", "GET", "PUT", "DELETE", "OPTIONS"]
|
|
||||||
allowedHttpHeaders = ["Origin", "X-Requested-With", "Content-Type", "Accept", "Referer", "User-Agent", "X-Auth-Token"]
|
|
||||||
supportsCredentials = false
|
|
||||||
}
|
|
||||||
hosts {
|
|
||||||
allowed = ["."]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
play.http {
|
|
||||||
forwarded.trustedProxies = ["0.0.0.0/0"]
|
|
||||||
parser.maxDiskBuffer = 209715200 //200M default
|
|
||||||
parser.maxMemoryBuffer = 2M
|
|
||||||
}
|
|
||||||
|
|
||||||
kafka {
|
|
||||||
server.address="172.20.24.171:9092"
|
|
||||||
gps {
|
|
||||||
topic = "fleet-api-gps"
|
|
||||||
insert.timeout = 300
|
|
||||||
batchReceive = 100
|
|
||||||
consumer.groupID = "fleet-gps-api-consumer-write2db"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
kafka.gps.insert.timeout = 300
|
|
||||||
|
|
||||||
compress.devices {
|
|
||||||
count = 1
|
|
||||||
currentValue = 0
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=fms-gps
|
|
||||||
After=multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Environment="TZ=Asia/Shanghai"
|
|
||||||
Environment="JAVA_HOME=/usr/local/jdk1.8.0"
|
|
||||||
User=ubuntu
|
|
||||||
WorkingDirectory=/opt/cap/fms-gps/fms-gps
|
|
||||||
ExecStart=/opt/cap/fms-gps/fms-gps/bin/fms_gps -Dconfig.file=../wtest.conf -Dhttp.port=9004
|
|
||||||
SuccessExitStatus=143
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=graphical.target
|
|
Loading…
x
Reference in New Issue
Block a user