Find the Exponential Software extensions you want
| UNIX name | Owner | Status |
|---|---|---|
| platformsh-automated-ssl-certificate-export | 7x | stable |
| Version | Compatible with |
|---|---|
| N/A | N/A |
This example shows how to setup automated SSL certificates export from your Platform.sh project.
cd %LOCAL_PROJECT_ROOT%
wget https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh
chmod +x acme.sh
mounts:
...
/.acme.sh:
source: local
source_path: acme-sh
web/.well-known/acme-challenge:
source: local
source_path: acme-sh-challenge
git add acme.sh
git add .platform.app.yaml
git commit -m "Installing acme.sh"
git push platform master
hooks:
build: |
set -e
...
if [ ! -z "$PLATFORMSH_CLI_TOKEN" ]; then
curl -sS https://platform.sh/cli/installer | php
fi
platform variable:create \
--level=project \
--name=PLATFORMSH_CLI_TOKEN \
--value=%TOKEN_VALUE% \
--json=false \
--sensitive=true \
--prefix=env \
--visible-build=true \
--visible-runtime=true
git add .platform.app.yaml
git commit -m "Installing Platform.sh CLI"
git push platform master
crons:
...
export_ssl_certificates:
spec: '0 2 1,15 * *'
cmd: |
if [ "$PLATFORM_BRANCH" = master ]; then
bash /app/export_ssl_certificates.sh
fi
git add export_ssl_certificates.sh
git add .platform.app.yaml
git commit -m "Export SSL Certificates cron"
git push platform master