Skip to content

Commit

Permalink
mv domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 10, 2024
1 parent b883c0e commit b135034
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,6 @@ working. Further configuration is required.</p>
</html>
EOF

if [ ! -d $NG_SSL ] && [ -e $NG_ACME ]; then
mkdir -p $NG_SSL

$NG_ACME --issue -d "$DOMAIN" -d "$AI_SERVICE_NAME.$DOMAIN" --dns dns_cf

$NG_ACME --install-cert -d "$DOMAIN" \
--key-file "$SSL_KEY" \
--fullchain-file "$SSL_FULL_CHAIN" \
--dns dns_cf
fi

if [ ! -e $NG_CONF ]; then
cat <<EOF | tee $NG_CONF
daemon off;
Expand Down Expand Up @@ -259,6 +248,17 @@ EOF
real_ip_header proxy_protocol;
}
EOF

if [ ! -d $NG_SSL ] && [ -e $NG_ACME ]; then
mkdir -p $NG_SSL

$NG_ACME --issue -d "$DOMAIN" -d "$AI_SERVICE_NAME.$DOMAIN" --dns dns_cf

$NG_ACME --install-cert -d "$DOMAIN" \
--key-file "$SSL_KEY" \
--fullchain-file "$SSL_FULL_CHAIN" \
--dns dns_cf
fi
fi
fi

Expand Down

0 comments on commit b135034

Please sign in to comment.