docker-compose environment for the entire v.st system
https://v.st/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
441 B
26 lines
441 B
#!/bin/bash
|
|
ENV=env.production
|
|
if [ ! -r "$ENV" ]; then
|
|
echo >&2 "$ENV: not found?"
|
|
exit 1
|
|
fi
|
|
|
|
source env.production
|
|
|
|
if [ -z "${DOMAIN_NAME}" ]; then
|
|
echo >&2 "DOMAIN_NAME not set"
|
|
exit 1
|
|
fi
|
|
|
|
certdir="data/certbot/conf/live/${DOMAIN_NAME}"
|
|
mkdir -p "$certdir"
|
|
|
|
openssl req \
|
|
-x509 \
|
|
-newkey rsa:2048 \
|
|
-keyout "$certdir/privkey.pem" \
|
|
-out "$certdir/fullchain.pem" \
|
|
-sha256 \
|
|
-nodes \
|
|
-days 365 \
|
|
-subj "/CN=${DOMAIN_NAME}'" \
|
|
|