From fb0f9c8f4f7cea840fe178425db9331151eda4e2 Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 14 Jan 2025 17:40:53 +0100 Subject: [PATCH] first commit --- .env | 37 +++++++++++++++++++++++++++++++++++++ .gitignore | 1 + README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..a82178f --- /dev/null +++ b/.env @@ -0,0 +1,37 @@ +# MariaDB +MYSQL_DATABASE=nextcloud +MYSQL_USER=nextcloud +#MYSQL_PASSWORD= +MYSQL_HOST=cloudnetignet_mariadb +#MYSQL_ROOT_PASSWORD= + +# Admin account +NEXTCLOUD_ADMIN_USER=admin +#NEXTCLOUD_ADMIN_PASSWORD= + +# Trusted domains +NEXTCLOUD_TRUSTED_DOMAINS=127.0.0.1 cloud.netig.net collabora.netig.net + +# Redis +REDIS_HOST=cloudnetignet_redis + +# SMTP +SMTP_HOST=mail.netig.net +SMTP_SECURE=tls +SMTP_PORT=587 +SMTP_AUTHTYPE=LOGIN +SMTP_NAME=noreply@netig.net +#SMTP_PASSWORD= +MAIL_FROM_ADDRESS=noreply +MAIL_DOMAIN=netig.net + +# Upload size +PHP_MEMORY_LIMIT=1024M +PHP_UPLOAD_LIMIT=1024M +APACHE_BODY_LIMIT=0 + +# Reverse Proxy +OVERWRITEHOST=cloud.netig.net +OVERWRITEPROTOCOL=https +OVERWRITECLIURL=https://cloud.netig.net +TRUSTED_PROXIES=127.0.0.1 103.177.249.4 2a13:7c81:157::2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57d9655 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +volumes/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..cab5270 --- /dev/null +++ b/README.md @@ -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>/d' core/templates/layout.user.php +``` + +Disable the unified search menu. +``` +# nerdctl exec --user www-data -ti cloudnetignet_nextcloud sed -i '/