同じ Discourse サーバーで他の作業を行うために、いくつかの設定を変更しました。
一部のブラウザでは、Web サイトにアクセスすると SSL の通知(白いページ)が表示されます。
ファイル: /var/discourse/containers/app.yml
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Lets Encrypt (https) を追加したい場合は、この 2 行のコメントを外してください
# - "templates/web.ssl.template.yml"
# - "templates/web.letsencrypt.ssl.template.yml"
- "templates/web.socketed.template.yml"
上記のような変更に対して自動 SSL 生成機能は実行されないため、手動で以下のように行っています。
cd /var/discourse
./launcher enter app
"/shared/letsencrypt"/acme.sh --cron --home "/shared/letsencrypt" --force
exit
その後、systemctl restart nginx を実行します。
私の nginx 設定は以下の通りです。
server {
listen 443 ssl http2;
ssl on;
ssl_certificate /var/discourse/shared/standalone/letsencrypt/thuvienmuasam.com/thuvienmuasam.com.cer;
ssl_certificate_key /var/discourse/shared/standalone/letsencrypt/thuvienmuasam.com/thuvienmuasam.com.key;
前回は問題なかったのですが、今回は上記のようなエラーが発生しています。
私の対応は正しいでしょうか?

