2018-05-11 01:17:11 +02:00
|
|
|
If enabling the 'consent' resource in synapse, you will need some templates
|
|
|
|
for the HTML to be served to the user. This directory contains very simple
|
|
|
|
examples of the sort of thing that can be done.
|
|
|
|
|
|
|
|
You'll need to add this sort of thing to your homeserver.yaml:
|
|
|
|
|
|
|
|
```
|
|
|
|
form_secret: <unique but arbitrary secret>
|
|
|
|
|
|
|
|
user_consent:
|
|
|
|
template_dir: docs/privacy_policy_templates
|
2018-05-22 15:50:22 +02:00
|
|
|
version: 1.0
|
2018-05-11 01:17:11 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
You should then be able to enable the `consent` resource under a `listener`
|
|
|
|
entry. For example:
|
|
|
|
|
|
|
|
```
|
|
|
|
listeners:
|
|
|
|
- port: 8008
|
|
|
|
resources:
|
|
|
|
- names: [client, consent]
|
|
|
|
```
|