This repository has been archived on 2022-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
synapse/copy_coturn_certs.sh
2021-08-13 16:46:25 -05:00

8 lines
376 B
Bash
Executable File

#!/bin/sh -x
DOMAIN=turn.boba.best
mkdir -p data/coturn/certs
sudo cp /var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/$DOMAIN/$DOMAIN.crt data/coturn/certs/
sudo cp /var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/$DOMAIN/$DOMAIN.key data/coturn/certs/
sudo chown -R nobody:nogroup data/coturn/certs