-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
188 lines (159 loc) · 6.57 KB
/
config.ini
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# Device
otppi.device.name=OTP-Pi
otppi.device.version=Version 1.0.0
otppi.device.image.name=otp.jar
otppi.device.reset.config.path=/otp-pi/reset-config.ini
otppi.device.reset.type=RPi
otppi.device.reset.config.name=reset-config.ini
otppi.device.hmac=4194cbdf197b1a281612e14b5d0b68a692fd7f81d6a817d4abcf7977407fa76b196a39519281c68eea98f96dae255753b1f5a9bf69d851ac505ec8e44daedbb7
otppi.device.secret.key=itI*t7t7ur^%E65eE54ew43wYu9j9J(7r67R
otppi.device.print.config=true
# Server
otppi.server.dir.log=C:\\bitbucket\\OTP-Pi\\log
otppi.server.dir.storage=C:\\bitbucket\\OTP-Pi\\log
otppi.server.log.config.not.found=false
otppi.server.port=8888
# Management Web Server
otppi.web.session.name=SMSSESSID
otppi.web.session.lifetime=144000000000
otppi.web.session.file.path=/resource/session
otppi.web.document.root=C:/bitbucket/OTP-Pi/resource/www
otppi.web.cache.file.html=true
# Configuration Server Path
otppi.path.setting.base=C:/bitbucket/OTP-Pi
otppi.path.setting.all=/resource/config/config.ini
otppi.path.setting.bell=/resource/data/bell/bell-config.json
otppi.path.setting.general=/resource/data/general/general-config.json
otppi.path.setting.subscriber.ws=/resource/data/subscriber/subscriber-ws.json
otppi.path.setting.subscriber.amqp=/resource/data/subscriber/subscriber-amqp.json
otppi.path.setting.subscriber.redis=/resource/data/subscriber/subscriber-redis.json
otppi.path.setting.subscriber.stomp=/resource/data/subscriber/subscriber-stomp.json
otppi.path.setting.subscriber.mqtt=/resource/data/subscriber/subscriber-mqtt.json
otppi.path.setting.subscriber.activemq=/resource/data/subscriber/subscriber-activemq.json
otppi.path.setting.sms=/resource/data/gsm/sms.json
otppi.path.setting.modem=/resource/data/gsm/devices.json
otppi.path.setting.user=/resource/data/user/urses.json
otppi.path.setting.api.service=/resource/data/api/services.json
otppi.path.setting.api.user=/resource/data/api/urses.json
otppi.path.setting.blocking=/resource/data/api/blocking.json
otppi.path.setting.email=/resource/data/email/sender-account.json
otppi.path.setting.smtp=/resource/data/email/smtp.json
otppi.path.setting.ethernet=/resource/data/network/ethernet.json
otppi.path.setting.firewall=/resource/data/network/firewall.json
otppi.path.setting.ddns=/resource/data/ddns/ddns.json
otppi.path.setting.ddns.cloudflare=/resource/data/ddns/vendor/cloudflare.json
otppi.path.setting.ddns.noip=/resource/data/ddns/vendor/noip.json
otppi.path.setting.ddns.afraid=/resource/data/ddns/vendor/afraid.json
otppi.path.setting.ddns.dynu=/resource/data/ddns/vendor/dynu.json
otppi.path.setting.server.status=/resource/data/server/server-status.json
otppi.path.setting.keystore=/resource/data/keystore/keystores.json
otppi.path.setting.keystore.data=/resource/data/keystore/data
otppi.path.setting.dhcp=/resource/data/network/dhcpd.json
otppi.path.setting.wlan=/resource/data/network/wlan.json
otppi.path.setting.dhcp.default=/resource/config/network/dhcpd.json
otppi.path.setting.wlan.default=/resource/config/network/wlan.json
otppi.path.setting.ethernet.default=/resource/config/network/ethernet.json
# Configuration OS Path
otppi.path.os.wlan=/etc/sysconfig/network-scripts/ifcfg-wlan0
otppi.path.os.ssid.key=/etc/sysconfig/network-scripts/keys-wlan0
otppi.path.os.dhcp=/etc/dhcp/dhcpd.conf
otppi.path.os.ethernet=/etc/sysconfig/network-scripts/ifcfg-eth0
# Vendor (wvdial)
otppi.wvdial.path.config=/etc/wvdial.conf
otppi.wvdial.command.connect=/bin/wvdial &
otppi.wvdial.command.disconnect=/bin/pkill wvdial
# Cron
otppi.cron.expression.device=*/5 0 * * * ?
otppi.cron.enable.device=true
otppi.cron.expression.amqp=0 0 * * * ?
otppi.cron.enable.amqp=true
otppi.cron.expression.general=*/10 * * * * ?
otppi.cron.enable.ntp=true
otppi.cron.expression.server.status=0 */5 * * * ?
otppi.cron.enable.server.status=true
otppi.cron.enable.ddns=true
otppi.cron.time.resolution=minute
# SSH
otppi.ssh.username=root
otppi.ssh.password=centos
otppi.ssh.host=localhost
otppi.ssh.port=22
otppi.ssh.sleep=10
otppi.ssh.enable=false
otppi.ssh.reboot.command=reboot
otppi.ssh.restart.command=/bin/bash /var/otp-pi/restart.sh
otppi.ssh.ping.command=/bin/curl -X GET http://localhost:8888/ping/
otppi.ssh.cleanup.command=/bin/bash /var/otp-pi/cleanup.sh
# SMS
otppi.sms.path.log=C:/bitbucket/OTP-Pi/resource/data/report/outbox
otppi.sms.inbox.storage=SM
otppi.sms.inbox.status=REC READ
otppi.sms.debug.read=true
otppi.sms.show.trafic=true
# OTP
otppi.otp.length=6
otppi.otp.salt=gfiushciyw89erywe98r23r23rj2
otppi.otp.lifetime=30000
otppi.otp.gc.ingterval=60000
otppi.otp.cache.file=/resource/data/otp/otp.json
# Sound
otppi.sound.pin=26
otppi.sound.enable=true
otppi.sound.test.tone=16c2 16d2 6e2 8d2 8c2 4d2 4g2 32- 6c2 8c2 8b1 16a1 4b1 4e2 32- 6a1 6b1 6c2 6g1 6b1 8c2 6d2 6e2 8c2 4d2
otppi.sound.test.octave=3
otppi.sound.test.tempo=80
otppi.sound.alert.tone=8c2 4c2 16- 8c2 4c2
otppi.sound.alert.octave=3
otppi.sound.alert.tempo=80
otppi.sound.disconnect.tone=8c2 4c2 16- 8c2 4c2
otppi.sound.disconnect.octave=3
otppi.sound.disconnect.tempo=80
otppi.sound.error.tone=8c2 4c2 16- 8c2 4c2
otppi.sound.error.octave=3
otppi.sound.error.tempo=80
# Modem
otppi.modem.inspect.interval=1000
otppi.modem.debug=true
# Cron
otppi.cron.expression.general=*/10 * * * * ?
otppi.cron.expression.device=*/5 0 * * * ?
otppi.cron.expression.amqp=0 0 * * * ?
otppi.cron.expression.mqtt=0 0 * * * ?
otppi.cron.expression.redis=0 0 * * * ?
otppi.cron.expression.ws=0 0 * * * ?
otppi.cron.enable.server.status=true
otppi.cron.expression.server.status=0 */5 * * * ?
otppi.cron.enable.device=true
otppi.cron.expression.device=0 * * * * ?
otppi.cron.enable.amqp=true
otppi.cron.expression.amqp=0 * * * * ?
otppi.cron.enable.mqtt=true
otppi.cron.expression.mqtt=0 * * * * ?
otppi.cron.enable.redis=true
otppi.cron.expression.redis=0 * * * * ?
otppi.cron.enable.ws=true
otppi.cron.expression.ws=0 * * * * ?
otppi.cron.enable.ntp=true
otppi.cron.enable.ddns=true
otppi.cron.time.resolution=minute
otppi.hwclock=hwclock
otppi.server.status.max.record=1000
# Default API Setiings
otppi.default.http.port=80
otppi.default.https.port=443
otppi.default.http.enable=true
otppi.default.https.enable=false
otppi.default.api.path.otp=/api/otp
otppi.default.api.path.message=/api/message
otppi.default.api.path.sms=/api/message
otppi.default.api.path.email=/api/email
otppi.default.api.path.blocking=/api/blocking
otppi.default.api.path.unblocking=/api/unblocking
# Activation Configuration
otppi.activation.username=username
otppi.activation.password=password
otppi.activation.method=POST
otppi.activation.url=http://localhost/activation/
otppi.activation.content.type=application/json
otppi.activation.authorization=Basic
otppi.activation.request.timeout=30000