1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Document Openvpn config with coturn

This commit is contained in:
Josué Tille 2021-03-30 21:53:13 +02:00
parent 6af8567e26
commit 3524a7dcf7
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -78,6 +78,29 @@ If you have a dynamic IP address, you also might need to update this config auto
*/15 * * * * root bash /opt/yunohost/__SYNAPSE_INSTANCE_NAME__/Coturn_config_rotate.sh; */15 * * * * root bash /opt/yunohost/__SYNAPSE_INSTANCE_NAME__/Coturn_config_rotate.sh;
``` ```
#### OpenVPN
In case of you have an OpenVPN server you might want than `coturn-synapse` restart when the VPN restart. To do this create a file named `/usr/local/bin/openvpn_up_script.sh` with this content:
```
#!/bin/bash
(
sleep 5
sudo systemctl restart coturn-synapse.service
) &
exit 0
```
Add this line in you sudo config file `/etc/sudoers`
```
openvpn ALL=(ALL) NOPASSWD: /bin/systemctl restart coturn-synapse.service
```
And add this line in your OpenVPN config file
```
ipchange /usr/local/bin/openvpn_up_script.sh
```
### Important Security Note ### Important Security Note
We do not recommend running Element from the same domain name as your Matrix We do not recommend running Element from the same domain name as your Matrix