1
0
Fork 0
Commit graph

16 commits

Author SHA1 Message Date
Tiz
05a1713402
Update adjust_config.yml - remove type for preview generator
adjust-nextcloud-config tags is returning an error `Unknown type integer`  when setting the type to int or integer for jpeg_quality. 
This workaround proposes to remove the "type=" as the playbook works well without
2024-10-02 11:29:40 +00:00
hooger
fedbb83cff as an app setting, it needs an app name to be applied to 2024-08-05 17:27:51 +02:00
Gergely Horváth
6b3c9b95d5
Change of preview generation default values. (#20)
* Change of preview generation default values.

According to the [docs](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/previews_configuration.html),
some variables are unsupported, while the default of others have changed.

* is defined is not used, changing "null" handling

Luckily it works as numbers as string are accepted.

* check for unused NC variables

* this is an app setting, not a system setting

* Deprecate nextcloud_preview_system_jpeg_quality, not nextcloud_preview_app_jpeg_quality

Ref: https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/pull/20#discussion_r1686902142

---------

Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2024-07-30 20:55:05 +03:00
Slavi Pantaleev
fd4b567e2b Pass the correct data types when configuring preview feature
Fixes https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/issues/19
2024-07-11 07:20:34 +03:00
IUCCA
32fe016c40
added optional systemd service + timer for nextcloud app updates (#17)
* added optional systemd service + timer for nextcloud app updates

* added optional systemd service + timer for nextcloud app updates

* added uninstall tasks
2024-05-08 16:34:41 +03:00
Slavi Pantaleev
eaa789ad22 Add nextcloud_config_parameter_mail_* variables 2024-01-06 12:06:57 +02:00
Slavi Pantaleev
1cb3ff73ff Fix typo in variable name (imageick -> imagick) 2023-12-03 12:41:56 +02:00
Slavi Pantaleev
c50f4d614e Fix comparison method in validation check for deprecated variables 2023-12-03 12:41:29 +02:00
Slavi Pantaleev
3c18ed01f2 Add support for installing arbitrary packages in the customized container image
Related to https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/pull/12
2023-12-03 12:33:08 +02:00
sudo-Tiz
f4274e2308
Update adjust_config.yml 2023-10-01 09:05:45 +00:00
Gergely Horváth
a877b16c03
Preview generator setup (#7)
* Preview generator setup

Enable the variable nextcloud_preview_enabled and you are good to go.

Some important aspects of usage:
- the preview generator has two stages [according to their readme](https://github.com/nextcloud/previewgenerator)
  - a generate-all phase, which has to be executed only a single time
  - a pre-generate phase, that should be run in a cronjob.
    That runs quite fast if the generate-all phase finishd.
We do not want to run the generate-all phase multiple times, so its execution has to be followed somehow.
This is done by creating a file on the host side and both the task that executes generate-all
and both the cronjob checks its existance.

Multiple vaiables are also defined and the corresponding default values are also set.
These values are based on the [upstream readme](https://github.com/nextcloud/previewgenerator) and also on experience.
Feel free to change anything.

Once installed, the playbook needs to be called with the adjust-nextcloud-config tag.
This tag sets up the variables and calls the generate-all script, that will also create the file---signalling
its finished state---on the host.
*** As this may take a long time, be sure to only call it when you have time to leave it running!!! ***
The playbook calls generate-all asynchronously, but it will timeout after about 27h.
On 60GBs, most if images, it took about 10 minutes to finish.
If it takes more time, you may want to start it from the host by calling
```sh
/usr/bin/env docker exec mash-nextcloud-server php /var/www/html/occ preview:generate-all
```

If the nextcloud_preview_enabled value is set back to false, the host side files are cleaned up
and also the cron job is changed, not to call prevew generation again however, the database and generated
previews are kept intact.

* fix playbook format suggestions by Slavi (see conversation in !7)
2023-09-16 10:01:20 +03:00
Slavi Pantaleev
4b1e795caf Force-build customized container image when its Dockerfile changes 2023-07-06 20:11:55 +03:00
Slavi Pantaleev
74845395e3 Improve Redis support by mounting read-write redis-session.ini into the container
Related to https://github.com/nextcloud/docker/issues/763

Fixes https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/issues/4
2023-04-03 10:20:27 +03:00
Gergely Horváth
c5707fbe2d
fix renamed variable issue (#3) 2023-04-02 19:11:28 +03:00
Slavi Pantaleev
4fe27471ff Add support for installing/configuring the Office (Collabora) app 2023-03-17 13:51:45 +02:00
Slavi Pantaleev
b6c8c81978 Initial commit 2023-03-17 11:34:15 +02:00