Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: Reverb Dashboard fails on localhost when SSL is enabled due to hardcoded host

オープン 初心者向け
#1,602 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
bun, typescript
領域
frontend

調査の方向性

websocket-status.tsx から始めて reverbApps の設定を確認し、特に WebSocket ホストの選択方法を調べます。変更後に bun run build を実行します。ダッシュボードがハードコードされた localhost アドレスではなく VITE_REVERB_HOST を使用し、ビルドが正常に完了すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

macOS
Platform

macOS

Operating system version

MacOS 15.7.2

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.24.2

PHP Version

8.4

Bug description

I ran into an issue where the Reverb Dashboard would not connect on localhost when SSL was enabled.

This appears to be related to (or the same root cause as)
https://github.com/laravel/reverb/issues/350

Steps to reproduce

Environment

Initial environment configuration:

REVERB_APP_ID=1001
REVERB_APP_KEY=laravel-herd
REVERB_APP_SECRET=secret
REVERB_HOST="0.0.0.0"
REVERB_PORT=8080
REVERB_SCHEME=https

Later updated to:

REVERB_APP_ID=1001
REVERB_APP_KEY=laravel-herd
REVERB_APP_SECRET=secret
REVERB_HOST="reverb.herd.test"
REVERB_PORT=443
REVERB_SCHEME=https

What was happening

The Dashboard was failing to connect because the host inside websocket-status.tsx was hardcoded to 127.0.0.1. When SSL is enabled, this causes the Dashboard to ignore the configured REVERB_HOST, leading to connection failures on localhost and custom domains.

Fix

Updating the reverbApps configuration to use the environment variable instead of the hardcoded value resolved the issue.

const reverbApps = [
    {
        id: import.meta.env.VITE_REVERB_APP_ID,
        name: "Main Application",
        key: import.meta.env.VITE_REVERB_APP_KEY,
        **host: import.meta.env.VITE_REVERB_HOST,**
        port: import.meta.env.VITE_REVERB_PORT,
        forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
    },
]

After making this change and running:

bun run build

the Reverb Dashboard connected properly without any issues.

Expected behavior

The Dashboard should respect VITE_REVERB_HOST instead of relying on a hardcoded 127.0.0.1, especially when SSL is enabled.

Hope this helps

Relevant log output

主要言語
言語のデータがありません
スター
124
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

beyondcode/herd-community のほかの issue

beyondcode/herd-community の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。