Skip to content

Commit

Permalink
Symlink vast certificate, no copy
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Aug 5, 2024
1 parent a5f860e commit d29a5bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/COPY_ROOT_0/opt/ai-dock/bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ init_set_web_credentials() {

# Vast.ai TLS certificates
if [[ -f /etc/instance.crt && -f /etc/instance.key ]]; then
cp /etc/instance.crt /opt/caddy/tls/container.crt
cp /etc/instance.key /opt/caddy/tls/container.key
rm -f /opt/caddy/tls/container.*
ln -sf /etc/instance.crt /opt/caddy/tls/container.crt
ln -sf /etc/instance.key /opt/caddy/tls/container.key
fi

if [[ -z $WEB_USER ]]; then
Expand Down

0 comments on commit d29a5bf

Please sign in to comment.