2021-10-13 13:46:46 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
nextcloud_container_volumes: "{{ nextcloud_container_base_volumes + nextcloud_container_extra_volumes }}"
|
|
|
|
nextcloud_container_env: "{{ nextcloud_container_base_environment | combine(nextcloud_container_extra_environment) }}"
|
|
|
|
|
|
|
|
nextcloud_container_base_labels:
|
|
|
|
version: "{{ nextcloud_version }}"
|
|
|
|
nextcloud_container_labels: "{{ nextcloud_container_base_labels | combine(nextcloud_container_extra_labels) }}"
|
|
|
|
|
|
|
|
nextcloud_container_base_environment: "{{ nextcloud_container_base_environment_yaml | from_yaml }}"
|
|
|
|
nextcloud_container_base_environment_yaml: |+2
|
|
|
|
{% if nextcloud_database_type == 'postgres' %}
|
|
|
|
POSTGRES_DB: "{{ nextcloud_database_name }}"
|
|
|
|
POSTGRES_USER: "{{ nextcloud_database_user }}"
|
|
|
|
POSTGRES_PASSWORD: "{{ nextcloud_database_pass }}"
|
|
|
|
POSTGRES_HOST: "{{ nextcloud_database_host }}"
|
|
|
|
{% elif nextcloud_database_type in ['mysql', 'mariadb'] %}
|
|
|
|
MYSQL_DATABASE: "{{ nextcloud_database_name }}"
|
|
|
|
MYSQL_USER: "{{ nextcloud_database_user }}"
|
|
|
|
MYSQL_PASSWORD: "{{ nextcloud_database_pass }}"
|
|
|
|
MYSQL_HOST: "{{ nextcloud_database_host }}"
|
|
|
|
{% elif nextcloud_database_type == 'sqlite' %}
|
|
|
|
SQLITE_DATABASE: "{{ nextcloud_database_name }}"
|
|
|
|
{% endif %}
|
2021-10-17 19:12:38 +00:00
|
|
|
PHP_MEMORY_LIMIT: "{{ nextcloud_php_memory_limit }}"
|
|
|
|
PHP_UPLOAD_LIMIT: "{{ nextcloud_php_upload_limit }}"
|
2021-10-17 19:02:11 +00:00
|
|
|
|
2021-10-24 13:59:31 +00:00
|
|
|
nextcloud_config: "{{ nextcloud_base_config | from_yaml | combine(nextcloud_extra_config|default({}), recursive=True, list_merge='append') }}"
|
|
|
|
nextcloud_base_config: |+2
|
|
|
|
{% if nextcloud_database_type != 'sqlite' %}
|
2021-10-24 13:50:32 +00:00
|
|
|
system:
|
|
|
|
dbhost: "{{ nextcloud_database_host }}"
|
|
|
|
dbuser: "{{ nextcloud_database_user }}"
|
|
|
|
dbpassword: "{{ nextcloud_database_pass }}"
|
|
|
|
dbname: "{{ nextcloud_database_name }}"
|
2021-10-24 13:59:31 +00:00
|
|
|
dbtype: "{{ nextcloud_database_types[nextcloud_database_type] }}"
|
|
|
|
{% endif %}
|
2021-10-24 13:50:32 +00:00
|
|
|
app:
|
|
|
|
core:
|
|
|
|
backgroundjobs_mode: "{{ nextcloud_background_job_mode }}"
|
|
|
|
|
2021-10-17 19:02:11 +00:00
|
|
|
nextcloud_occ_command: "php occ"
|
2021-10-24 10:38:43 +00:00
|
|
|
nextcloud_container_php_socket_path: /var/run/php
|
2021-10-24 13:59:31 +00:00
|
|
|
nextcloud_database_types:
|
|
|
|
postgres: pgsql
|
|
|
|
mysql: mysql
|
|
|
|
mariadb: mysql
|
|
|
|
sqlite: sqlite3
|