mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-03 19:58:14 +00:00 
			
		
		
		
	- Patch local.config.php in one sed exec: * hostname, database, username, password * system.url via '#' delimiter to avoid URL slash escaping * Single notify: docker compose up - env.j2: * FRIENDICA_URL now uses domains|get_url(application_id, WEB_PROTOCOL) * Simplify FRIENDICA_DEBUGGING with |lower * Normalize spacing for readability - vars/main.yml: * Minor cleanups (comment header, spacing) * Consistent friendica_docker_ldap_config path construction Why: fewer container execs ⇒ faster runs; idempotent key updates; consistent URL configuration across env and PHP config. Risk: requires WEB_PROTOCOL and domains|get_url to be defined in inventory/vars as elsewhere in the project. https://chatgpt.com/share/689b92af-b184-800f-9664-2450e00b29d6
		
			
				
	
	
		
			17 lines
		
	
	
		
			802 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			802 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
# General
 | 
						|
application_id:                 "web-app-friendica"
 | 
						|
database_type:                  "mariadb"
 | 
						|
 | 
						|
# Docker
 | 
						|
docker_compose_flush_handlers:  false
 | 
						|
 | 
						|
# Friendica
 | 
						|
friendica_container:            "friendica"
 | 
						|
friendica_no_validation:        "{{ applications | get_app_conf(application_id, 'features.oidc', True) }}" # Email validation is not neccessary if OIDC is active
 | 
						|
friendica_application_base:     "/var/www/html"
 | 
						|
friendica_docker_ldap_config:   "{{ friendica_application_base }}/config/ldapauth.config.php"
 | 
						|
friendica_host_ldap_config:     "{{ docker_compose.directories.volumes }}ldapauth.config.php"
 | 
						|
friendica_config_dir:           "{{ friendica_application_base }}/config"
 | 
						|
friendica_config_file:          "{{ friendica_config_dir }}/local.config.php"
 | 
						|
friendica_user:                 "www-data"
 |