groupware: update developer guide

* add instructions and container to create a key and certificate pair
   for the built-in IDM LDAP as we need it to listen on LDAPS for
   Stalwart, which has been disabled by default with
   https://github.com/opencloud-eu/opencloud/pull/2880

 * add environment variables to point to the certificates

 * update services/groupware/DEVELOPERS.md with up-to-date instructions,
   using Stalwart 0.16
This commit is contained in:
Pascal Bleser
2026-06-16 16:45:25 +02:00
parent 0fb8496cfb
commit 75f062f53d
3 changed files with 324 additions and 65 deletions

View File

@@ -0,0 +1,2 @@
/*.crt
/*.key

View File

@@ -63,6 +63,9 @@ services:
USERS_LDAP_BIND_PASSWORD: "admin"
GROUPS_LDAP_BIND_PASSWORD: "admin"
IDM_LDAPS_ADDR: 0.0.0.0:9235
IDM_LDAPS_CERT: /etc/opencloud/certs/ldaps.crt
IDM_LDAPS_KEY: /etc/opencloud/certs/ldaps.key
OC_LDAP_CACERT: /etc/opencloud/certs/ldaps.crt
GROUPWARE_JMAP_BASE_URL: https://${STALWART_DOMAIN:-stalwart.opencloud.test}
GROUPWARE_JMAP_MASTER_USERNAME: "master"
GROUPWARE_JMAP_MASTER_PASSWORD: "admin"
@@ -70,6 +73,7 @@ services:
- ./config/opencloud/app-registry.yaml:/etc/opencloud/app-registry.yaml
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
- ./config/opencloud/banned-password-list.txt:/etc/opencloud/banned-password-list.txt
- ./config/opencloud/certs:/etc/opencloud/certs
# configure the .env file to use own paths instead of docker internal volumes
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
- ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
@@ -85,6 +89,14 @@ services:
driver: ${LOG_DRIVER:-local}
restart: always
opencloud-certs:
image: alpine/openssl:latest
command: req -subj '/CN=opencloud.test' -x509 -newkey rsa:4096 -sha256 -days 3650 -batch -nodes -keyout ./certs/ldaps.key -out ./certs/ldaps.crt
volumes:
- ./config/opencloud/certs:/certs:rw
stdin_open: true
tty: true
volumes:
opencloud-config:
opencloud-data: