aboutsummarylogtreecommitdiffstats
path: root/README
blob: 8af5e7d3227f3b96a785a979c5b405d71fa5d384 (plain)
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
The systemd service mautrix-facebook.service expects config and registration files here.

Quick Setup:
  ( adapted from https://github.com/tulir/mautrix-facebook/wiki/Bridge-setup )

1. Copy example config and ensure service can read it
 sudo cp /usr/share/mautrix-facebook/example-config.yaml /etc/synapse/mautrix-facebook/config.yaml
 sudo chown mautrix-facebook /etc/synapse/mautrix-facebook/config.yaml

2. Update the config to your liking. You'll at least need to change the
  homeserver settings. You also need to add your homeserver in the permissions
  section and the auth server.

3. Generate the registration:
 sudo python -m mautrix_facebook -g -c /etc/synapse/mautrix-facebook/config.yaml \
	  -r /etc/synapse/mautrix-facebook/registration.yaml

4. Add the registration file to Synapse's homeserver.yaml:
 #homeserver.yaml
 app_service_config_files:
    - /etc/synapse/mautrix-facebook/registration.yaml

5. Restart synapse
 sudo systemctl restart synapse

6. Start the bridge:
 sudo systemctl start mautrix-facebook