# Some downloads during the build process were interrupted due to network issues. Can this be optimized?

**URL:** https://meta.discourse.org/t/topic/402657
**Category:** Feature
**Created:** [May 11, 2026, 1:10pm UTC](https://meta.discourse.org/t/topic/402657 "2026-05-11T13:10:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![singi2016cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/singi2016cn/32/532755_2.png) [@singi2016cn](https://meta.discourse.org/u/singi2016cn)
#### Post date: [May 11, 2026, 1:10pm UTC](https://meta.discourse.org/t/topic/402657/1 "2026-05-11T13:10:52Z")

</div>

![img_v3_0211j_a93e1c21-178a-4e56-8fab-dc0f405093ag](https://global.discourse-cdn.com/meta/original/4X/3/3/c/33ca910d879f1d67d482a35df03049ae72646b77.jpeg)

For example, when downloading acme.sh, it often hangs due to network issues. Optimization plan:

1. Consider bundling this script (even if it’s not the latest version)
2. Do not interrupt the entire build process; instead, provide a quick command to copy it in from outside the container for fixing the issue after the build.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [May 11, 2026, 1:23pm UTC](https://meta.discourse.org/t/topic/402657/2 "2026-05-11T13:23:02Z")

</div>

Hi there, do the suggestions mentioned in here help?

> [@When i rebuild it stoped on get acme.sh script](https://meta.discourse.org/t/when-i-rebuild-it-stoped-on-get-acme-sh-script/387131):
>
> hello, discourse when i rebuild, it stop on curl [https://raw.githubusercontent.com/acmesh-official/acme.sh/3.0.6/acme.sh](https://raw.githubusercontent.com/acmesh-official/acme.sh/3.0.6/acme.sh) \> /opt/acme.sh my server is in chinese, how can i do on this with my server.

---

<div class="post-metadata">

### Author: ![singi2016cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/singi2016cn/32/532755_2.png) [@singi2016cn](https://meta.discourse.org/u/singi2016cn)
#### Post date: [May 12, 2026, 3:48am UTC](https://meta.discourse.org/t/topic/402657/3 "2026-05-12T03:48:02Z")

</div>

Yes, very helpful. Thank you.

It would be even better if we could add a `DISCOURSE_ACME_DOWNLOAD_URL` variable, so it can be overridden in `app.yml` without worrying about `git pull` conflicts.

```plaintext
env:
  DISCOURSE_FORCE_HTTPS: true
  # add DISCOURSE_ACME_DOWNLOAD_URL
  DISCOURSE_ACME_DOWNLOAD_URL: https://raw.githubusercontent.com/acmesh-official/acme.sh/3.0.6/acme.sh
run:
  - exec:
      cmd:
        - curl "$DISCOURSE_ACME_DOWNLOAD_URL" > /opt/acme.sh
        - chmod +x /opt/acme.sh
  - file:
      path: "/usr/local/bin/configure-letsencrypt"
      chmod: "+x"
      contents: |
        #!/bin/bash
        touch /var/spool/cron/crontabs/root
        LETSENCRYPT_DIR="/shared/letsencrypt"
        install -d -m 0755 -g root -o root $LETSENCRYPT_DIR
        cd /opt

```
