feat(server): allow configuring nextcloud settings by populating nextcloud_extra_config

This commit is contained in:
2021-10-24 15:50:32 +02:00
parent feadc801d5
commit e9715e31bf
3 changed files with 50 additions and 37 deletions

View File

@ -25,5 +25,18 @@ nextcloud_container_base_environment_yaml: |+2
PHP_MEMORY_LIMIT: "{{ nextcloud_php_memory_limit }}"
PHP_UPLOAD_LIMIT: "{{ nextcloud_php_upload_limit }}"
nextcloud_config: "{{ nextcloud_base_config | combine(nextcloud_extra_config|default({}), recursive=True, list_merge='append') }}"
nextcloud_base_config:
system:
# TODO: needs to have conditions as f.ex. sqlite doesn't have a user
dbhost: "{{ nextcloud_database_host }}"
dbuser: "{{ nextcloud_database_user }}"
dbpassword: "{{ nextcloud_database_pass }}"
dbname: "{{ nextcloud_database_name }}"
#dbtype: "{{ nextcloud_db_types[nextcloud_database_type] }}"
app:
core:
backgroundjobs_mode: "{{ nextcloud_background_job_mode }}"
nextcloud_occ_command: "php occ"
nextcloud_container_php_socket_path: /var/run/php