DONE: add sectigo certs to docker container

This commit is contained in:
2026-10-11 14:58:02 +08:00
parent 6c9f2f4f0f
commit d0f08545d1
5 changed files with 91 additions and 2 deletions
+9
View File
@@ -3,6 +3,15 @@ set -e
cd /var/www/html
# Point PHP/cURL at the system CA bundle and trust Sectigo R36/R46 for Shoraka TLS.
if [ -f docker/php/php.ini ]; then
cp docker/php/php.ini /usr/local/etc/php/conf.d/app.ini
fi
if [ -d docker/php/certs ]; then
cp docker/php/certs/*.crt /usr/local/share/ca-certificates/ 2>/dev/null || true
update-ca-certificates >/dev/null 2>&1 || true
fi
if [ "${USE_STAGING_ENV:-false}" = "true" ] && [ -f .env.staging ]; then
cp .env.staging .env
fi