Skip to content

Commit 75f062f

Browse files
committed
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 #2880 * add environment variables to point to the certificates * update services/groupware/DEVELOPERS.md with up-to-date instructions, using Stalwart 0.16
1 parent 0fb8496 commit 75f062f

3 files changed

Lines changed: 322 additions & 63 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.crt
2+
/*.key

devtools/deployments/opencloud_full/opencloud.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,17 @@ services:
6363
USERS_LDAP_BIND_PASSWORD: "admin"
6464
GROUPS_LDAP_BIND_PASSWORD: "admin"
6565
IDM_LDAPS_ADDR: 0.0.0.0:9235
66+
IDM_LDAPS_CERT: /etc/opencloud/certs/ldaps.crt
67+
IDM_LDAPS_KEY: /etc/opencloud/certs/ldaps.key
68+
OC_LDAP_CACERT: /etc/opencloud/certs/ldaps.crt
6669
GROUPWARE_JMAP_BASE_URL: https://${STALWART_DOMAIN:-stalwart.opencloud.test}
6770
GROUPWARE_JMAP_MASTER_USERNAME: "master"
6871
GROUPWARE_JMAP_MASTER_PASSWORD: "admin"
6972
volumes:
7073
- ./config/opencloud/app-registry.yaml:/etc/opencloud/app-registry.yaml
7174
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
7275
- ./config/opencloud/banned-password-list.txt:/etc/opencloud/banned-password-list.txt
76+
- ./config/opencloud/certs:/etc/opencloud/certs
7377
# configure the .env file to use own paths instead of docker internal volumes
7478
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
7579
- ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
@@ -85,6 +89,14 @@ services:
8589
driver: ${LOG_DRIVER:-local}
8690
restart: always
8791

92+
opencloud-certs:
93+
image: alpine/openssl:latest
94+
command: req -subj '/CN=opencloud.test' -x509 -newkey rsa:4096 -sha256 -days 3650 -batch -nodes -keyout ./certs/ldaps.key -out ./certs/ldaps.crt
95+
volumes:
96+
- ./config/opencloud/certs:/certs:rw
97+
stdin_open: true
98+
tty: true
99+
88100
volumes:
89101
opencloud-config:
90102
opencloud-data:

0 commit comments

Comments
 (0)