Skip to content

Commit

Permalink
new: speed up cert by parallel req
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Dec 15, 2024
1 parent 61e27b3 commit f08bd99
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions acme.sh/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ source ./cert_utils.sh
domains=$(cat ../current.json | jq -r '.domains[] | select(.mode | IN("direct", "relay", "old_xtls_direct", "sub_link_only")) | .domain')

for d in $domains; do
get_cert $d
get_cert $d &
done
wait

domains=$(cat ../current.json | jq -r '.domains[] | select(.mode | IN("fake")) | .domain')
for d in $domains; do
get_self_signed_cert $d
get_self_signed_cert $d &
done
wait

for f in ../ssl/*.crt; do
d=$(basename "$f" .crt)
get_self_signed_cert $d
get_self_signed_cert $d &
done
systemctl reload hiddify-haproxy
wait
systemctl reload hiddify-haproxy
systemctl reload hiddify-singbox
# systemctl reload hiddify-xray

0 comments on commit f08bd99

Please sign in to comment.