You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.0 KiB
61 lines
2.0 KiB
6 years ago
|
{
|
||
|
server: {
|
||
|
id: teltonika9000
|
||
|
listenAddr: ":9000"
|
||
|
acceptTimeout: 10 # timeout (dalam detik)
|
||
|
writeTimeout: 10 # timeout (dalam detik)
|
||
|
maxReceive: 50
|
||
|
maxSend: 50
|
||
|
device: ruptela
|
||
|
}
|
||
|
|
||
|
ruptela: {
|
||
|
message: "http://192.168.70.200/oslog/api/BroadcastPrivate/getbroadcastmessage/"
|
||
|
report: "http://192.168.70.200/oslog/api/BroadcastPrivate/putbroadcastmessage"
|
||
|
appendIMEI: false
|
||
|
serviceTimeout: 10 # REST Service timeout (dalam detik)
|
||
|
}
|
||
|
|
||
|
gpsdata: {
|
||
|
storage: sql
|
||
|
sql: {
|
||
|
driver: postgres
|
||
|
connection: "user=postgres password=s3mb1l4n dbname=OSLOGRECV2 host=192.168.70.196 port=5432 connect_timeout=30 sslmode=disable"
|
||
|
maxIdle: 10 #Max jumlah koneksi idle
|
||
|
maxOpen: 10 #Max jumlah koneksi open
|
||
|
maxLifetime: 60 #Maximum lifetime (dalam detik)
|
||
|
insertQuery: INSERT INTO "GPS_DATA"("IMEI", "DATA_LOG", "FLAG", "DATE_INS", "DESC", "GPS_CODE", "DATA_LEN") VALUES($1, $2, $3, $4, $5, $6, $7)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
log: {
|
||
|
#Known types: console, file, sql
|
||
|
type: console, file
|
||
|
console: {
|
||
|
# use default options
|
||
|
}
|
||
|
|
||
|
|
||
|
#for file (uncomment type)
|
||
|
# type: file
|
||
|
file: {
|
||
|
name: /home/vagrant/receiver/teltonika9000/applog.log
|
||
|
append: true
|
||
|
}
|
||
|
|
||
|
#for sql (uncomment type)
|
||
|
# SQLite -> driver: sqlite3
|
||
|
# PostgreSQL -> driver: postgres
|
||
|
# type: sql
|
||
|
sql: {
|
||
|
driver: sqlite3
|
||
|
connection: ./applog.sqlite
|
||
|
maxIdle: 10 #Max jumlah koneksi idle
|
||
|
maxOpen: 10 #Max jumlah koneksi open
|
||
|
maxLifetime: 60 #Maximum lifetime (dalam detik)
|
||
|
createQuery: CREATE TABLE applog(id INTEGER PRIMARY KEY AUTOINCREMENT, ts DATETIME, app VARCHAR(100), content TEXT)
|
||
|
insertQuery: INSERT INTO applog(ts, app, content) VALUES(?, ?, ?)
|
||
|
}
|
||
|
}
|
||
|
}
|