mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	- Split internal/external Coturn for BBB and Nextcloud - Added dedicated relay port ranges per app - Updated env and compose overrides for coturn - Ensure coturn role is loaded conditionally - Standardize credential/env passing for coturn @See https://chatgpt.com/share/68d6f376-4878-800f-b4f7-62822caa49ea
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # General
 | |
| application_id:             "web-svc-coturn"
 | |
| entity_name:                "{{ application_id | get_entity_name }}"
 | |
| domain:                     "{{ domains | get_domain(application_id) }}"
 | |
| 
 | |
| # Coturn 
 | |
| 
 | |
| ## Docker 
 | |
| COTURN_VERSION:             "{{ applications | get_app_conf(application_id, 'docker.services.' ~ entity_name ~ '.version') }}"
 | |
| COTURN_IMAGE:               "{{ applications | get_app_conf(application_id, 'docker.services.' ~ entity_name ~ '.image') }}"
 | |
| COTURN_VOLUME:              "{{ entity_name }}"
 | |
| COTURN_REALM:               "{{ domain }}"
 | |
| 
 | |
| ## Ports
 | |
| COTURN_TURN_PORT:           "{{ ports.public.turn[application_id] }}"
 | |
| COTURN_STUN_PORT:           "{{ ports.public.stun[application_id] }}"
 | |
| COTURN_RELAY_PORT_START:    "{{ ports.public.relay_port_ranges[application_id ~ '_start'] }}"
 | |
| COTURN_RELAY_PORT_END:      "{{ ports.public.relay_port_ranges[application_id ~ '_end'  ] }}"
 | |
| COTURN_RELAY_PORT_RANGE:    "{{ COTURN_RELAY_PORT_START }}-{{ COTURN_RELAY_PORT_END }}"
 | |
| 
 | |
| ## Credentials 
 | |
| COTURN_USER_NAME:           "{{ applications | get_app_conf(application_id, 'username') }}"
 | |
| COTURN_USER_PASSWORD:       "{{ applications | get_app_conf(application_id, 'credentials.user_password') }}"
 | |
| COTURN_STATIC_AUTH_SECRET:  "{{ applications | get_app_conf(application_id, 'credentials.auth_secret') }}"
 | |
| 
 | |
| ## Certificates
 | |
| COTURN_TLS_CERT_PATH:       "{{ [ LETSENCRYPT_LIVE_PATH, ssl_cert_folder, 'fullchain.pem' ] | path_join }}"
 | |
| COTURN_TLS_KEY_PATH:        "{{ [ LETSENCRYPT_LIVE_PATH, ssl_cert_folder, 'privkey.pem'   ] | path_join }}" |