-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_settings.xml
68 lines (63 loc) · 2.57 KB
/
sample_settings.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://vacbot.sing.esei.uvigo.es/Settings"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://vacbot.sing.esei.uvigo.es/Settings VacBotMain/src/main/resources/settings.xsd"
version="1">
<documentDatabaseConnection>
<driver>org.sqlite.JDBC</driver>
<url>jdbc:sqlite:../DB/corpus.db</url>
</documentDatabaseConnection>
<knowledgeBaseConnection>
<directory>../DB/knowledge_base</directory>
</knowledgeBaseConnection>
<luceneIndex>
<directory>../DB/lucene_index</directory>
</luceneIndex>
<behavior>
<responseBias>impartial</responseBias>
</behavior>
<telegramBotFrontend>
<userName>TheVacBot</userName>
<!-- Read the Telegram token from the TOKEN environment variable -->
<token>env:TOKEN</token>
<!--
Receive updates (new messages) via incoming HTTPS POST requests (webhooks).
For more details, see https://core.telegram.org/bots/webhooks and
https://core.telegram.org/bots/self-signed#java-keystore
-->
<webhookUpdate>
<!-- The URL where Telegram servers will send updates -->
<externalUrl>https://vacbot.yourdomainorip.com:8443</externalUrl>
<!-- The URL for the internal server to bind to -->
<internalUrl>https://0.0.0.0:8443</internalUrl>
<!--
The HTTP URL path component that the internal server will bind this bot to.
Telegram recommends this component to be a shared secret, so only Telegram
servers will ever send a request to this path, but for this sample configuration
a constant string will do
-->
<botPath>TheVacBot</botPath>
<!-- The Java KeyStore where the certificate to use for HTTPS server authentication resides -->
<certificateStorePath>vacbot.jks</certificateStorePath>
<!-- The password for the Java KeyStore -->
<certificateStorePassword>p@ssw0rd</certificateStorePassword>
<!--
The public key to send to the Telegram servers, in case that the certificate is not
trusted by Telegram (i.e. self-signed or signed by a strange CA).
If not specified, no public key will be sent to the Telegram servers
-->
<publicKeyPath>vacbot.pem</publicKeyPath>
</webhookUpdate>
<!--
As a simpler to set up alternative (but less efficient), updates can also received
by long polling, which sends requests to Telegram servers periodically to retrieve
updates:
-->
<!--<longPollingUpdate/>-->
</telegramBotFrontend>
<!--
Alternatively, a CLI frontend can be used for debugging, development,
interfacing with other programs and other purposes
-->
<!--<commandLineInterfaceFrontend/>-->
</settings>