0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 17:34:00 +01:00
synapse/docs/privacy_policy_templates/README.md
Richard van der Hoff 47815edcfa ConsentResource to gather policy consent from users
Hopefully there are enough comments and docs in this that it makes sense on its
own.
2018-05-15 15:11:59 +01:00

579 B

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
  default_version: 1.0

You should then be able to enable the consent resource under a listener entry. For example:

listeners:
  - port: 8008
    resources:
      - names: [client, consent]