downey
(Michael Downey)
2021 年 6 月 15 日午後 10:42
1
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.)
「いいね!」 2
Falco
(Falco)
2021 年 6 月 15 日午後 10:59
2
I think DISCOURSE_BACKUP_HOSTNAME environment variable may work for this now due t
committed 07:54PM - 19 Mar 20 UTC
- Define the CSP based on the requested domain / scheme (respecting force_https)…
- Update EnforceHostname middleware to allow secondary domains, add specs
- Add URL scheme to anon cache key so that CSP headers are cached correctly
「いいね!」 3
downey
(Michael Downey)
2021 年 6 月 15 日午後 11:14
3
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!
f1r4s
(Eddie)
2022 年 1 月 16 日午前 12:33
4
Hi @downey @Falco 様
DISCOURSE_BACKUP_HOSTNAME を tor セットアップで使用する方法についてのガイドを共有していただけますでしょうか。
昨年作成していたのですが、現在、onion コンテナと nginx の設定との接続に問題があり、onion アドレスにアクセスすると空白のページが表示されます。
ERR_EMPTY_RESPONSE
よろしくお願いいたします。
こんにちは。
まだ有効ですか?
皆さん、こんにちは。
ディスコースフォーラムでオニオンアドレスを使用したいと考えています。
いくつかの記事を参照し、Torをインストールしましたが、うまく動作しています。
Bryan、pfaffman、Falcoに感謝します。
現在、Torブラウザにオニオンアドレスを入力すると、クレアネットアドレスにリダイレクトされ、Torを使用する必要がなくなります。
2つのドメインを使用するのは好ましくない方法であることは承知しています。しかし、フォーラムでオニオンアドレスを使用する必要があり、この機能を実装したいと考えています。samはプラグインを使用して方法を紹介し、FalcoはDISCOURSE_BACKUP_HOSTNAME環境変数メソッドを紹介しました。
samのプラグインメソッドを試しましたが、うまくいきませんでした。
DISCOURSE_BACKUP_HOSTNAMEメソッドは試したことがありません。
この問題についてアドバイスをお願いします。
ありがとうございます。