File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ RUN set -ex; \
7070 libwebsockets \
7171 \
7272 shadow \
73- grep; \
73+ grep \
74+ util-linux-misc; \
7475 useradd --system -u 1000 eturnal; \
7576 apk del --no-cache \
7677 shadow; \
Original file line number Diff line number Diff line change @@ -18,6 +18,22 @@ elif [ -z "$INTERNAL_SECRET" ]; then
1818 exit 1
1919fi
2020
21+ # Trust additional CA certificates, if the user provided NEXTCLOUD_TRUSTED_CACERTS_DIR
22+ # The container is read-only, so we build a custom bundle in /tmp (tmpfs) and
23+ # point Go's TLS stack to it via SSL_CERT_FILE.
24+ if mountpoint -q /usr/local/share/ca-certificates; then
25+ echo " Trusting additional CA certificates..."
26+ set -x
27+ cp /etc/ssl/certs/ca-certificates.crt /tmp/ca-certificates.crt
28+ for cert in /usr/local/share/ca-certificates/* ; do
29+ if [ -f " $cert " ]; then
30+ cat " $cert " >> /tmp/ca-certificates.crt
31+ fi
32+ done
33+ export SSL_CERT_FILE=/tmp/ca-certificates.crt
34+ set +x
35+ fi
36+
2137set -x
2238IPv4_ADDRESS_TALK_RELAY=" $( hostname -i | grep -oP ' [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -1) "
2339# shellcheck disable=SC2153
Original file line number Diff line number Diff line change 437437 " 8081"
438438 ],
439439 "internal_port" : " %TALK_PORT%" ,
440+ "volumes" : [
441+ {
442+ "source" : " %NEXTCLOUD_TRUSTED_CACERTS_DIR%" ,
443+ "destination" : " /usr/local/share/ca-certificates" ,
444+ "writeable" : false
445+ }
446+ ],
440447 "environment" : [
441448 " NC_DOMAIN=%NC_DOMAIN%" ,
442449 " TALK_HOST=nextcloud-aio-talk" ,
You can’t perform that action at this time.
0 commit comments