Compare commits

...

5 commits

Author SHA1 Message Date
995ffb49b7 ff
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline was successful
2024-06-03 21:09:59 +02:00
e9f0f45043 t 2024-06-03 21:08:00 +02:00
ce383899bf d 2024-06-03 21:06:26 +02:00
12bebff240 sudo 2024-06-03 21:06:24 +02:00
4eb00d32a3 mail 2024-06-03 21:06:19 +02:00
3 changed files with 11 additions and 4 deletions

View file

@ -123,6 +123,7 @@ services:
traefik.http.middlewares.nextcloud-webdav.replacepathregex.regex: "^/.well-known/ca(l|rd)dav"
traefik.http.middlewares.nextcloud-webdav.replacepathregex.replacement: "/remote.php/dav/"
traefik.http.middlewares.nextcloud-webdav.redirectregex.permanent: true
traefik.http.middlewares.nextcloud-hsts.headers.stsincludesubdomains: false
traefik.http.middlewares.nextcloud-hsts.headers.stspreload: true

View file

@ -21,7 +21,7 @@ php occ ldap:set-config s01 ldapBase "dc=mgrote,dc=net"
php occ ldap:set-config s01 ldapBaseUsers "dc=mgrote,dc=net"
php occ ldap:set-config s01 ldapBaseGroups "dc=mgrote,dc=net"
php occ ldap:set-config s01 ldapConfigurationActive 1
php occ ldap:set-config s01 ldapLoginFilter "(&(objectclass=person)(uid=%uid))"
php occ ldap:set-config s01 ldapLoginFilter "(&(&(objectclass=person)(memberOf=cn=nextcloud,ou=groups,dc=mgrote,dc=net))(|(uid=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid))))"
# EDIT: nextcloud group, contains the users who can login to Nextcloud
php occ ldap:set-config s01 ldapUserFilter "(&(objectclass=person)(memberOf=cn=nextcloud,ou=groups,dc=mgrote,dc=net))"
php occ ldap:set-config s01 ldapUserFilterMode 0

View file

@ -17,15 +17,21 @@ php occ app:disable dashboard firstrunwizard federation federatedfilesharing nex
php occ app:enable twofactor_totp calendar contacts checksum epubviewer dicomviewer impersonate metadata quota_warning event_update_notification
# cron
sudo -u www-data php occ background: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@mgrote.net"
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="mail-relay"y
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