{{ $bytesGB := 1073741824 }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: "nextcloud-configuration"
data:
  opcache.ini: |
    opcache.memory_consumption={{ .Values.nextcloud.opcache_memory_consumption }}

  php.ini: |
    max_execution_time={{ .Values.nextcloud.max_execution_time }}

  limitrequestbody.conf: |
    LimitRequestBody {{ mul .Values.nextcloud.max_upload_size $bytesGB }}
