فشل الترقية إلى أحدث إصدار 21/8/25

That’s right. Are you editing that file inside of the container? Building a new container builds a new container. It’s not rewriting that file, but all files.

You can add stuff to your app.yml to change the file after it’s rewritten.

What changes are you making to that file? Why?

Oh. Wait.

You didn’t answer this question, but I think the answer is yes.

It forces the site since you mostly never want your site to be available by more than one hostname.

So you’ll need to add some code to your app.yml to un-do that.

A long time ago, I had a solution for this in Setup Multisite Configuration with Let's Encrypt and no Reverse Proxy

So you’ll need to add a sed in an exec or maybe use some replace stanza(s) to remove or modify that bit. You probably still need to follow the stuff in that topic (that I think may still work) to get multiple You can now use the DISCOURSE_HOSTNAME_ALIASES: www.domain.com,otherdomain.org,www.otherdomain.org to get certs for the additional hostnames.

I suppose the most clever solution might be to contrive to add the other hostname aliases into that if ($http_host != code somehow. I don’t have any sites set up that way right now, so I’m not likely to want to spend time figuring it out for fun.

But yeah, the web ssl template has this:

        if (\$http_host != ${DISCOURSE_HOSTNAME}) {
          rewrite (.*) https://${DISCOURSE_HOSTNAME}\$1 permanent;
        }

so you could either delete it or find a way to make it also check for your other hostnames.