added turn server for talk/spreed audio/video
This commit is contained in:
parent
68dde782f8
commit
08ad0f5343
@ -76,6 +76,27 @@
|
|||||||
backup: yes
|
backup: yes
|
||||||
notify: Restart nextcloud
|
notify: Restart nextcloud
|
||||||
|
|
||||||
|
- name: /home/docker/nextcloud.{{inventory_hostname}}/turnserver.conf
|
||||||
|
blockinfile:
|
||||||
|
path: /home/docker/nextcloud.{{inventory_hostname}}/turnserver.conf
|
||||||
|
mode: "0400"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
create: yes
|
||||||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||||
|
block: |
|
||||||
|
syslog
|
||||||
|
listening-port=3478
|
||||||
|
fingerprint
|
||||||
|
use-auth-secret
|
||||||
|
static-auth-secret=
|
||||||
|
realm=nextcloud.{{inventory_hostname}}
|
||||||
|
total-quota=100
|
||||||
|
bps-capacity=0
|
||||||
|
stale-nonce
|
||||||
|
no-multicast-peers
|
||||||
|
backup: yes
|
||||||
|
|
||||||
- name: /home/docker/nextcloud.{{inventory_hostname}}/docker-compose.yml Container Configuration
|
- name: /home/docker/nextcloud.{{inventory_hostname}}/docker-compose.yml Container Configuration
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /home/docker/nextcloud.{{inventory_hostname}}/docker-compose.yml
|
path: /home/docker/nextcloud.{{inventory_hostname}}/docker-compose.yml
|
||||||
@ -199,6 +220,20 @@
|
|||||||
- traefik.http.middlewares.nextcloud-{{ ansible_facts['hostname'] }}--phpmyadmin-auth.basicauth.users=admin:$$apr1$$XLxGs/Ba$$3phZ1a2RtfExOp8x6NFjZ.
|
- traefik.http.middlewares.nextcloud-{{ ansible_facts['hostname'] }}--phpmyadmin-auth.basicauth.users=admin:$$apr1$$XLxGs/Ba$$3phZ1a2RtfExOp8x6NFjZ.
|
||||||
# Traefik network
|
# Traefik network
|
||||||
- traefik.docker.network=traefik
|
- traefik.docker.network=traefik
|
||||||
|
|
||||||
|
nextcloud.{{inventory_hostname}}--coturn:
|
||||||
|
image: coturn/coturn:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- ./turnserver.conf:/etc/coturn/turnserver.conf
|
||||||
|
networks:
|
||||||
|
- nextcloud.{{inventory_hostname}}--network
|
||||||
|
- traefik
|
||||||
|
ports:
|
||||||
|
- 3478:3478
|
||||||
|
- 3478:3478/udp
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
nextcloud.{{inventory_hostname}}--network:
|
nextcloud.{{inventory_hostname}}--network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
@ -306,6 +341,19 @@
|
|||||||
validate: /bin/bash -n %s
|
validate: /bin/bash -n %s
|
||||||
notify: run nextcloud.update
|
notify: run nextcloud.update
|
||||||
|
|
||||||
|
- name: Allow turn for talk/spreed audio/video tcp
|
||||||
|
community.general.ufw:
|
||||||
|
rule: allow
|
||||||
|
port: '3478'
|
||||||
|
proto: tcp
|
||||||
|
|
||||||
|
- name: Allow turn for talk/spreed audio/video udp
|
||||||
|
community.general.ufw:
|
||||||
|
rule: allow
|
||||||
|
port: '3478'
|
||||||
|
proto: udp
|
||||||
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: run genpw.sh
|
- name: run genpw.sh
|
||||||
ansible.builtin.shell: ./genpw.sh
|
ansible.builtin.shell: ./genpw.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user