-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
example-config.yaml
140 lines (114 loc) · 4.45 KB
/
example-config.yaml
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
# Config options relating to interaction with Matrix.
matrix:
# ID of the ApplicationService. This should be unique
# to all other appservices on the homeserver.
asId: E
# The address which the homeserver can use to access
# this appservice.
address: http://example.com:12345
# The address(es) on which to listen for Matrix
# connections. To listen on all available
# interfaces/addresses use 0.0.0.0. This setting
# is independent to that of esockets.
bindAddr: [0.0.0.0]
# The port(s) on which to listen on for Matrix
# connections. This setting is independent to that
# of esockets.
bindPorts: [8080]
# The tokens used for authentication between the
# homeserver and E. These are automatically
# generated when the registration file is created
# and generally should not be changed.
asToken: <AS_TOKEN>
hsToken: <HS_TOKEN>
# The path to the registration file (where it should
# be placed when generated and where E should look
# for it). This can be full or relative.
regFilePath: registration.yaml
# Config options relating to the appservice's bot account.
# This is the account which receives commands meant for
# the appservice.
bot:
# The localpart of the MXID which should be registered.
username: e
# The displayname for the bot user.
displayname: E
# An mxc URL pointing to an un-encrypted image for the
# bot to use as an avatar. This can be acquired by
# uploading the avatar to an un-encrypted room and
# viewing the source of the message.
avatarUrl: mxc://example.com/abcABC
# A list of the MXIDs with "sudo" access to this
# appservice. These users are able to execute
# commands marked as admin-only below.
sudoers: []
# A list of commands which are enabled and can be executed
# by the bot user. By default these commands are sudoer-only
# unless explicitly specified in nosudoCommands.
# The available options are:
# - TODO
enabledCommands: []
# A subset of enabledCommands which any Matrix user can run.
nosudoCommands: []
# Config options relating to the homeserver.
homeserver:
# Where the homeserver is listening for
# requests. This should be the actual
# homeserver URL, and not the suffix
# of its MXIDs (if the server is at
# matrix.example.com but the usernames
# on the server are @user:example.com
# use https://matrix.example.com).
address: https://matrix.example.com
# The suffix of MXIDs on the server
# (if the server is at matrix.example.com
# but the usernames on the server are
# @user:example.com use
# example.com).
mxidSuffix: example.com
# Config options relating to the homeserver's
# provisioning API.
provisioning:
# The path to the provisioning API.
path: /_matrix/provision/v1
# The shared secret to use to authenticate
# with the provisioning API. If set to
# "disable", use of this API will be
# disabled.
sharedSecret: disable
# Config options relating to users managed by
# this appservice.
managedUsers:
# The template for the localpart of MXIDs of
# users managed by this appservice. The available
# variables are:
# - TODO
usernameTemplate: e_{{ConnectionId}}
# The template for the displaynames of users
# managed by this appservice. The available
# variables are:
# - TODO
displaynameTemplate: E_{{ConnectionId}}
# Config options relating to the esockets
esockets:
# The directory where configs for individual esockets
# are stored. This can be an absolute or relative path,
# but should not include a trailing slash.
# The configs should be in the top level of the
# specified directory and should be named like so:
# {name of the esocket}.yaml . Missing configs will
# disable the esocket. For a list of esockets run E
# with the -esockets flag.
confDir: "./esocket-conf"
# Whether esockets which failed to initialise should
# be fatal. This means that, if an esocket's init
# function returns an error, E will exit cleanly.
# Otherwise, the esocket that failed to initialise
# will be deinitialised and ignored.
fatalInitFailures: false
# Whether to allow an esocket to override the ownership
# of a client ID. If this is true, esockets which register
# a client ID which already exists, will receive messages
# for that client ID from then on. Otherwise, they will
# be notified of an error.
allowClientIdLocationOverride: false