Is Sam's multi-hostname ninja plugin approach still valid?

Continuing the discussion from Forcing hostname has broken support for Onion Services:

We have a use case where, like an onion+clearnet usage, we need two different hostnames for the same Discourse instance. Before we spend some time testing, just wondered if anyone has a feeling whether or not the approach below would still be valid. (Since it’s been a couple years.)

1 Like

I think DISCOURSE_BACKUP_HOSTNAME environment variable may work for this now due t

3 Likes

Hey that’s worth a try and obviously much simpler. We’ll take a look and report back.

For our purposes it seems to have gotten the job done. Thanks!