mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(docker): use ./data instead of ./cache
For the `git` service, ./data is always used to provide an optional overriding of ssh host keys. In aur-dev production containers, most services which use the data mount use an internal Docker `data` volume instead. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
604901fe74
commit
d4d9f50b8f
10 changed files with 56 additions and 57 deletions
|
@ -5,8 +5,8 @@ set -eou pipefail
|
|||
# user customization of the certificates that FastAPI uses.
|
||||
# Otherwise, fallback to localhost.{cert,key}.pem, generated by `ca`.
|
||||
|
||||
CERT=/cache/production.cert.pem
|
||||
KEY=/cache/production.key.pem
|
||||
CERT=/data/production.cert.pem
|
||||
KEY=/data/production.key.pem
|
||||
|
||||
DEST_CERT=/etc/ssl/certs/web.cert.pem
|
||||
DEST_KEY=/etc/ssl/private/web.key.pem
|
||||
|
@ -15,8 +15,8 @@ if [ -f "$CERT" ]; then
|
|||
cp -vf "$CERT" "$DEST_CERT"
|
||||
cp -vf "$KEY" "$DEST_KEY"
|
||||
else
|
||||
cat /cache/localhost.cert.pem /cache/ca.root.pem > "$DEST_CERT"
|
||||
cp -vf /cache/localhost.key.pem "$DEST_KEY"
|
||||
cat /data/localhost.cert.pem /data/ca.root.pem > "$DEST_CERT"
|
||||
cp -vf /data/localhost.key.pem "$DEST_KEY"
|
||||
fi
|
||||
|
||||
cp -vf /docker/config/nginx.conf /etc/nginx/nginx.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue