homeserver/docker-compose/nextcloud/misc.sh.j2
2024-07-30 22:56:30 +02:00

37 lines
1.4 KiB
Django/Jinja

#!/bin/bash
# Telefonregion
php occ config:system:set default_phone_region --value="DE"
# https://help.nextcloud.com/t/nextcloud-wont-load-any-mixed-content/13565/3
php occ config:system:set overwriteprotocol --value="https"
php occ config:system:set overwrite.cli.url --value="http://nextcloud.mgrote.net"
# https://docs.nextcloud.com/server/29/admin_manual/configuration_server/background_jobs_configuration.html
php occ config:system:set maintenance_window_start --type=integer --value=1
# disable unused apps
php occ app:disable dashboard firstrunwizard federation federatedfilesharing nextcloud_announcements recommendations circles survey_client user_status weather_status photos
# enable extra apps
php occ app:enable twofactor_totp calendar contacts checksum epubviewer dicomviewer impersonate metadata quota_warning event_update_notification
# cron
php occ background:cron
# tz
php occ config:system:set logtimezone --value="Europe/Berlin"
# mail
php occ config:system:set mail_from_address --value="nextcloud"
php occ config:system:set mail_smtpmode --value="smtp"
php occ config:system:set mail_sendmailmode --value="smtp"
php occ config:system:set mail_smtphost --value="postfix"
php occ config:system:set mail_smtpport --value="25"
# status
echo Status
php occ status
php occ user:list
# adhoc: docker exec --user www-data nextcloud-app php occ config:system:set trusted_domains 2 -- value=docker10.mgrote.net