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:
parent
6af8567e26
commit
3524a7dcf7
1 changed files with 23 additions and 0 deletions
23
README.md
23
README.md
|
@ -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;
|
||||
```
|
||||
|
||||
#### 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
|
||||
|
||||
We do not recommend running Element from the same domain name as your Matrix
|
||||
|
|
Loading…
Reference in a new issue