-
Notifications
You must be signed in to change notification settings - Fork 4
/
app_config.dat
33 lines (29 loc) · 1.73 KB
/
app_config.dat
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
; app_config.dat - PTC-Sim's global configuration file.
;
; Author: Dustin Fast, 2018
[application]
app_name = PTC-Sim ; Web and terminal display name. URL compatible chars only.
refresh_time = 5 ; Thread & loop sleep seconds between iterations
web_expire = 10 ; Web session timeout, in minutes
[track]
track_rails = static/track/rails.json ; Track model file
track_locos = static/track/locos.json ; File containing list of locomotives
track_bases = static/track/bases.json ; File containing list of base stations
speed_units = mph ; mph or kmh
component_timeout = 30 ; Seconds before a track componenent is "offline"
[messaging]
broker = localhost ; Message Broker IP address/hostname
send_port = 18181 ; Broker-side "msg receive" listener port
fetch_port = 18182 ; Broker-side "fetch" listener port
bos_emp_addr = sim.bos ; The Back Office Server's EMP address
loco_emp_prefix = sim.l. ; Locomotive EMP address prefix
base_emp_prefix = sim.b. ; Base station EMP address prefix
wayside_emp_prefix = sim.w. ; Wayside EMP address prefix
msg_expire_time = 30 ; Seconds msgs sit in broker queue before expiring
max_msg_size = 1024 ; Max allowed EMP message size, in bytes
msg_interval = 5 ; Status message send interval, in seconds
network_timeout = 2 ; Socket timeout, in seconds
[logging]
level = 10 ; 10 = DEBUG, 20 = INFO, 30 = WARN
num_files = 1 ; Max number of rotating logfiles
max_file_size = 1000000 ; Max log size before rotation, in bytes