first commit

This commit is contained in:
julien
2025-01-14 17:40:53 +01:00
commit fb0f9c8f4f
4 changed files with 116 additions and 0 deletions

42
README.md Normal file
View File

@@ -0,0 +1,42 @@
# cloud.netig.net
## Cron
Add this line into the host crontab with `crontab -e`.
```
*/5 * * * * nerdctl exec -u www-data cloudnetignet_nextcloud php /var/www/html/cron.php
```
## Config
```
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ background:cron
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ config:system:set maintenance_window_start --value="4" --type=integer
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ config:system:set default_phone_region --value="fr"
```
## Maintenance
```
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ maintenance:repair --include-expensive
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ db:add-missing-indices
```
## Privacy
Disable the contact menu.
```
# nerdctl exec --user www-data -ti cloudnetignet_nextcloud sed -i '/<div id="contactsmenu"><\/div>/d' core/templates/layout.user.php
```
Disable the unified search menu.
```
# nerdctl exec --user www-data -ti cloudnetignet_nextcloud sed -i '/<div id="unified-search"><\/div>/d' core/templates/layout.user.php
```
## Tips
To Clear logs.
```
# rm /srv/dwalin/cloud.netig.net/volumes/nextcloud/data/nextcloud.log*
```