selfhosted-traefik/nextcloud/README.md

34 lines
1.8 KiB
Markdown
Raw Normal View History

2021-04-29 07:41:13 +00:00
# Nextcloud setup
2021-04-26 08:14:18 +00:00
https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430
Follow the guide above as close as possible and deviate where traefik is being used etc.
There is also somewhere a step to set up an alias for `occ` that can be used outside the container to directly execute occ cli commands inside the container. (Should be in the guide above)
2021-04-21 09:32:48 +00:00
2021-04-29 07:41:13 +00:00
#Nextcloud self check fixes
2021-04-21 09:32:48 +00:00
Set default_phone_region like this:
occ config:syste:set default_phone_region --value="DE"
2021-04-21 07:34:52 +00:00
2021-04-29 07:41:13 +00:00
# Collabora loolwsd setup
2021-03-25 13:42:45 +00:00
Check if you have to alter this line in the _collabora/loolwsd.xml_ file:
2021-04-22 06:30:13 +00:00
`<host desc="Regex pattern of hostname to allow or deny." allow="true">nextcloud\\.sporada\\.eu</host>`
2021-04-29 07:41:13 +00:00
# Server Security and tuning
2021-04-26 08:13:10 +00:00
Look at the documentation for server security and server tuning: https://docs.nextcloud.com/server/21/admin_manual/installation/index.html#
2021-04-29 07:41:13 +00:00
Do as much as is possible with the docker setup. The PHP stuff for example is not needed.
2021-04-26 08:13:10 +00:00
2021-04-29 07:41:13 +00:00
# Photo Preview Generation:
- Photo viewer tweaks: https://rayagainstthemachine.net/linux%20administration/nextcloud-photos/
- Use these values to svae space on prieview files and speed nextcloud up. https://ownyourbits.com/2019/06/29/understanding-and-improving-nextcloud-previews/
2021-04-29 07:52:39 +00:00
```sh
occ config:app:set previewgenerator squareSizes --value="32 256"
occ config:app:set previewgenerator widthSizes --value="256 384"
occ config:app:set previewgenerator heightSizes --value="256"
occ config:system:set preview_max_x --value 2048
occ config:system:set preview_max_y --value 2048
occ config:system:set jpeg_quality --value 60
2021-04-29 07:54:16 +00:00
occ config:app:set preview jpeg_quality --value="60"
2021-04-29 07:52:39 +00:00
```
2021-04-28 07:16:15 +00:00
- I created a cron Job outside the container using the `occ` client command to trigger photo pre generation every day.
- Maybe this can be added to the cron nextcloud container?