Skip to content

Commit 99697d7

Browse files
committed
Various doc fixes and improvements
1 parent e133e12 commit 99697d7

File tree

9 files changed

+48
-81
lines changed

9 files changed

+48
-81
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ task debBuild(dependsOn: shadowJar) {
190190
ant.replaceregexp( // FIXME adapt to new config format
191191
file: "${debBuildConfPath}/${debConfFileName}",
192192
match: "key:\\R path:(.*)",
193-
replace: "key:\n path: '${debDataPath}/signing.key'"
193+
replace: "key:\n path: '${debDataPath}/keys'"
194194
)
195195

196196
ant.replaceregexp( // FIXME adapt to new config format
197197
file: "${debBuildConfPath}/${debConfFileName}",
198198
match: "storage:\\R provider:\\R sqlite:\\R database:(.*)",
199-
replace: "storage:\n provider:\n sqlite:\n database: '${debDataPath}/mxisd.db'"
199+
replace: "storage:\n provider:\n sqlite:\n database: '${debDataPath}/store.db'"
200200
)
201201

202202
copy {

docs/features/experimental/application-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ synapseSql:
2626
connection: '<DB CONNECTION URL>'
2727
```
2828
29-
The `synapseSql` section is used to retrieve display names which are not directly accessible in this mode.
29+
The `synapseSql` section is optional. It is used to retrieve display names which are not directly accessible in this mode.
3030
For details about `type` and `connection`, see the [relevant documentation](../../stores/synapse.md).
3131
If you do not configure it, some placeholders will not be available in the notification, like the Room name.
3232

docs/features/federation.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ lookup:
4646
invite:
4747
resolution:
4848
recursive: false
49-
session:
50-
policy:
51-
validation:
52-
forLocal:
53-
toRemote:
54-
enabled: false
55-
forRemote:
56-
toRemote:
57-
enabled: false
5849
```
5950
6051
There is currently no way to selectively disable federation towards specific servers, but this feature is planned.

docs/features/identity.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Identity
2-
**WARNING**: This document is incomplete and can be misleading.
3-
42
Implementation of the [Identity Service API r0.1.0](https://matrix.org/docs/spec/identity_service/r0.1.0.html).
53

64
## Lookups

docs/stores/exec.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,12 @@ exec:
229229
output:
230230
type: 'json'
231231
exit:
232-
success: [0, 128]
233-
failure: [1, 129]
232+
success:
233+
- 0
234+
- 128
235+
failure:
236+
- 1
237+
- 129
234238
```
235239
With:
236240
- The Identity store enabled for all features

docs/threepids/medium/email/smtp-connector.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Email notifications - SMTP connector
2-
Enabled by default.
3-
42
Connector ID: `smtp`
53

64
## Configuration

docs/threepids/medium/msisdn/twilio-connector.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# SMS notifications - Twilio connector
2-
Enabled by default.
3-
42
Connector ID: `twilio`
53

64
## Configuration

docs/threepids/notification/template-generator.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,13 @@ This template is used when someone is invited into a room using an email address
5151
| `%ROOM_NAME%` | The Name of the room in which the invite took place. If not available/set, empty |
5252
| `%ROOM_NAME_OR_ID%` | The Name of the room in which the invite took place. If not available/set, its Matrix ID |
5353

54-
### Local validation of 3PID Session
54+
### Validation of 3PID Session
5555
This template is used when to user which added their 3PID address to their profile/settings and the session policy
5656
allows at least local sessions.
5757

5858
#### Placeholders
5959
| Placeholder | Purpose |
6060
|----------------------|--------------------------------------------------------------------------------------|
6161
| `%VALIDATION_LINK%` | URL, including token, to validate the 3PID session. |
62-
| `%VALIDATION_TOKEN%` | The token needed to validate the local session, in case the user cannot use the link |
63-
64-
### Remote validation of 3PID Session
65-
This template is used when to user which added their 3PID address to their profile/settings and the session policy only
66-
allows remote sessions.
67-
68-
**NOTE:** 3PID session always require local validation of a token, even if a remote session is enforced.
69-
One cannot bind a Matrix ID to the session until both local and remote sessions have been validated.
70-
71-
#### Placeholders
72-
| Placeholder | Purpose |
73-
|----------------------|--------------------------------------------------------|
74-
| `%VALIDATION_TOKEN%` | The token needed to validate the session |
75-
| `%NEXT_URL%` | URL to continue with remote validation of the session. |
62+
| `%VALIDATION_TOKEN%` | The token needed to validate the session, in case the user cannot use the link. |
63+
| `%NEXT_URL%` | URL to redirect to after the sessions has been validated. |

mxisd.example.yaml

Lines changed: 36 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Sample configuration file explaining the minimum required keys to be set to run mxisd
22
#
33
# For a complete list of options, see https://github.com/kamax-matrix/mxisd/docs/README.md
4+
#
5+
# Please follow the Getting Started guide if this is your first time using/configuring mxisd
6+
#
7+
# -- https://github.com/kamax-matrix/mxisd/blob/master/docs/getting-started.md#getting-started
8+
#
49

510
#######################
611
# Matrix config items #
@@ -16,75 +21,59 @@ matrix:
1621
################
1722
# Signing keys #
1823
################
19-
# Absolute path for the Identity Server signing key.
20-
# This is **NOT** your homeserver key.
21-
# The signing key is auto-generated during execution time if not present.
24+
# Absolute path for the Identity Server signing keys database.
25+
# /!\ THIS MUST **NOT** BE YOUR HOMESERVER KEYS FILE /!\
26+
# If this path does not exist, it will be auto-generated.
2227
#
23-
# During testing, /var/tmp/mxisd.key is a possible value
28+
# During testing, /var/tmp/mxisd/keys is a possible value
2429
# For production, recommended location shall be one of the following:
25-
# - /var/opt/mxisd/sign.key
26-
# - /var/local/mxisd/sign.key
27-
# - /var/lib/mxisd/sign.key
30+
# - /var/lib/mxisd/keys
31+
# - /var/opt/mxisd/keys
32+
# - /var/local/mxisd/keys
2833
#
2934
key:
3035
path: ''
3136

3237

3338
# Path to the SQLite DB file for mxisd internal storage
39+
# /!\ THIS MUST **NOT** BE YOUR HOMESERVER DATABASE /!\
3440
#
3541
# Examples:
36-
# - /var/opt/mxisd/mxisd.db
37-
# - /var/local/mxisd/mxisd.db
38-
# - /var/lib/mxisd/mxisd.db
42+
# - /var/opt/mxisd/store.db
43+
# - /var/local/mxisd/store.db
44+
# - /var/lib/mxisd/store.db
3945
#
4046
storage:
4147
provider:
4248
sqlite:
4349
database: '/path/to/mxisd.db'
4450

4551

46-
####################
47-
# Fallback servers #
48-
####################
49-
#
50-
# Root/Central servers to be used as final fallback when performing lookups.
51-
# By default, for privacy reasons, matrix.org servers are not enabled.
52-
# See the following issue: https://github.com/kamax-matrix/mxisd/issues/76
53-
#
54-
# If you would like to use them and trade away your privacy for convenience, uncomment the following option:
52+
###################
53+
# Identity Stores #
54+
###################
55+
# If you are using synapse standalone and do not have an Identity store,
56+
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/synapse.md#synapse-identity-store
5557
#
56-
#forward:
57-
# servers: ['matrix-org']
58-
59-
60-
################
61-
# LDAP Backend #
62-
################
6358
# If you would like to integrate with your AD/Samba/LDAP server,
6459
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/ldap.md
65-
66-
67-
###############
68-
# SQL Backend #
69-
###############
70-
# If you would like to integrate with a MySQL/MariaDB/PostgreQL/SQLite DB,
71-
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/sql.md
72-
73-
74-
################
75-
# REST Backend #
76-
################
77-
# If you would like to integrate with an existing web service/webapp,
78-
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/rest.md
60+
#
61+
# For any other Identity store, or to simply discover them,
62+
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/README.md
7963

8064

8165
#################################################
8266
# Notifications for invites/addition to profile #
8367
#################################################
84-
# If you would like to change the content,
68+
# This is mandatory to deal with anything e-mail related.
69+
#
70+
# For an introduction to sessions, invites and 3PIDs in general,
71+
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/threepids/session/session.md#3pid-sessions
72+
#
73+
# If you would like to change the content of the notifications,
8574
# see https://github.com/kamax-matrix/mxisd/blob/master/docs/threepids/notification/template-generator.md
8675
#
87-
#### E-mail invite sender
76+
#### E-mail connector
8877
threepid:
8978
medium:
9079
email:
@@ -100,12 +89,13 @@ threepid:
10089
# SMTP port
10190
port: 587
10291

103-
# TLS mode for the connection.
92+
# STARTLS mode for the connection.
93+
# SSL/TLS is currently not supported. See https://github.com/kamax-matrix/mxisd/issues/125
10494
#
10595
# Possible values:
106-
# 0 Disable TLS entirely
107-
# 1 Enable TLS if supported by server (default)
108-
# 2 Force TLS and fail if not available
96+
# 0 Disable any kind of TLS entirely
97+
# 1 Enable STARTLS if supported by server (default)
98+
# 2 Force STARTLS and fail if not available
10999
#
110100
tls: 1
111101

0 commit comments

Comments
 (0)