diff --git a/bundles/nextcloud/metadata.py b/bundles/nextcloud/metadata.py index 757675c..0ec6c65 100644 --- a/bundles/nextcloud/metadata.py +++ b/bundles/nextcloud/metadata.py @@ -15,6 +15,10 @@ defaults = { 'php-cgi': {}, 'php-zip': {}, 'php-pgsql': {}, + 'php-bz2': {}, # face recognition + }, + 'sources': { + 'deb https://repo.delellis.com.ar {release} {release}', }, }, 'archive': { @@ -50,6 +54,11 @@ defaults = { 'env[TMPDIR]': '/tmp', 'env[TEMP]': '/tmp', }, + 'php.ini': { + 'PHP': { + 'memory_limit': '3G', # face recognition requires 2G + }, + }, }, 'postgresql': { 'roles': { @@ -77,6 +86,11 @@ defaults = { 'when': 'Sun 00:00:00', 'user': 'www-data', }, + 'nextcloud-face-recognition': { + 'command': '/usr/bin/php -f /opt/nextcloud/occ face:background_job -t 1800', + 'when': '*:0/10', + 'user': 'www-data', + }, }, 'zfs': { 'datasets': { @@ -107,3 +121,16 @@ def vhost(metadata): }, }, } + + +@metadata_reactor.provides( + 'nginx/vhosts' +) +def pdlib(metadata): + return { + 'apt': { + 'packages': { + f"php{metadata.get('php/version')}-pdlib": {}, + }, + }, + } diff --git a/data/apt/keys/repo.delellis.com.ar.asc b/data/apt/keys/repo.delellis.com.ar.asc new file mode 100644 index 0000000..f352d69 --- /dev/null +++ b/data/apt/keys/repo.delellis.com.ar.asc @@ -0,0 +1,41 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQGNBF5qU5ABDAC5P4yAxACWwvknjaREtCjSpqwpVKbP+HCQcaho3ao/ls2mUQ7K +WzqoAknFljZACkoQT6D+9t0Wx+aYhSb8kc/RHDoQQN5w7sAxBCsUS0/unF7PQxZH +px3YTJgTlkl7cB79pbK5mu/Ybj/AhtjLwuu5CO8xPK19K2Xl1TT14sWlfxVmNxJ1 +X62w2lPfHuS1GJKw5k32ee3UeZB2FAuwzO84FlvlmoSgiGgOSW+OPLxapZA0glO3 +M/FpjF/ergaQqbU3nAaPkj3J7by7+j2r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