[Bug]: Reverb Dashboard fails on localhost when SSL is enabled due to hardcoded host
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- bun, typescript
- 領域
- frontend
調査の方向性
websocket-status.tsx から始めて reverbApps の設定を確認し、特に WebSocket ホストの選択方法を調べます。変更後に bun run build を実行します。ダッシュボードがハードコードされた localhost アドレスではなく VITE_REVERB_HOST を使用し、ビルドが正常に完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
beyondcode/herd-community のほかの issue
-
[Bug]: PHP 8.3 php.ini missing auto_prepend_file and herd-ext extension lines (dump() undefined)オープンmacOS
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
beyondcode/herd-community#1693 ·
-
fixed-in-next-release macOS
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
beyondcode/herd-community#1764 · コメント 5 件 ·
-
macOS needs more information
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
beyondcode/herd-community#1755 · コメント 1 件 ·
-
bug macOS
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
beyondcode/herd-community#1751 ·
-
macOS
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
beyondcode/herd-community#1749 · コメント 1 件 · リアクション 5 件 ·
beyondcode/herd-community の issue をすべて見る
似ている issue
-
The inspector never shows the instances field, so scaling out is unreachable対応中かも @Mrkewl が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
xevrion/breakscale#96 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
maproulette/maproulette-frontend#2944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
jaegertracing/jaeger-ui#4618 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
mifi/lossless-cut#3125 ·
メンテナーはふだん 1 日以内に返信
-
pending close triaging
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#56765 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信