fix ssl cert handling

This commit is contained in:
Lars Hahn 2023-08-26 22:04:46 +02:00
parent 3c4d7ede4d
commit dbf2f2c10f
2 changed files with 17 additions and 2 deletions

View File

@ -15,8 +15,10 @@ coturn_parallel_connection: 0 #0 is unlimited
coturn_bandwitdh: 0 #0 B/s is unlimited coturn_bandwitdh: 0 #0 B/s is unlimited
coturn_session_lifetime: 600 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_dhparam: "/etc/letsencrypt/ssl-dhparams.pem"
coturn_configs: coturn_configs:

View File

@ -7,6 +7,19 @@
pkg: pkg:
- "coturn" - "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 - name: enable coturn server
lineinfile: lineinfile:
path: "/etc/default/coturn" path: "/etc/default/coturn"