fix ssl cert handling
This commit is contained in:
parent
3c4d7ede4d
commit
dbf2f2c10f
@ -15,8 +15,10 @@ coturn_parallel_connection: 0 #0 is unlimited
|
||||
coturn_bandwitdh: 0 #0 B/s is unlimited
|
||||
coturn_session_lifetime: 600
|
||||
|
||||
coturn_cert: "/etc/letsencrypt/live/{{ coturn_domain }}/fullchain.pem"
|
||||
coturn_pkey: "/etc/letsencrypt/live/{{ coturn_domain }}/privkey.pem"
|
||||
|
||||
coturn_cert_folder: "{{ cloud_apps }}/coturn/"
|
||||
coturn_cert: "{{ coturn_cert_folder }}/{{ coturn_domain }}.cert"
|
||||
coturn_pkey: "{{ coturn_cert_folder }}/{{ coturn_domain }}.key"
|
||||
coturn_dhparam: "/etc/letsencrypt/ssl-dhparams.pem"
|
||||
|
||||
coturn_configs:
|
||||
|
||||
@ -7,6 +7,19 @@
|
||||
pkg:
|
||||
- "coturn"
|
||||
|
||||
- name: setup coturn cert folder
|
||||
file:
|
||||
state: directory
|
||||
owner: turnserver
|
||||
group: root
|
||||
mode: 0770
|
||||
path: "{{ cloud_apps }}/coturn/"
|
||||
|
||||
path: "{{ ncloud_data_location }}"
|
||||
state: directory
|
||||
|
||||
mode: "o="
|
||||
|
||||
- name: enable coturn server
|
||||
lineinfile:
|
||||
path: "/etc/default/coturn"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user