web-ui not requesting relative path for reverse proxy purpose

オープン
#6,048 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
html, nginx
領域
web-dev

調査の方向性

The issue shows the web UI HTML emitting root-relative asset URLs and a <base href="/">; start by tracing how the SPA assets and base path are configured and served. Reproduce behind an nginx reverse proxy mounted at a subpath, then verify assets load and navigation stays under that prefix.

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

説明

Is there an existing issue for this?
  • I have searched the existing issues
Is your issue described in the documentation?
  • I have read the documentation
Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

#3008 reported web ui behind a reverse proxy not working with wrong href/..., with an nginx config for setup. The latest web ui SPA refactor redirects requests to subpath to /.

Expected Behavior

use relative path for asset files as in #3173 or maybe adapt SPA to allow setting path prefix in the file config or UI

Additional Context

HTML payload to the webui shows absolute path to assets

<!DOCTYPE html>
<html lang="en" data-bs-theme="auto">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="/" />
    <title>Sunshine</title>
    <link rel="icon" type="image/x-icon" href="/images/sunshine.ico" />
    <script type="module" crossorigin src="/assets/index-dXSEo1cN.js"></script>
    <link rel="stylesheet" crossorigin href="/assets/index-BKOd1Rnu.css">
  </head>
  <body>
    <div id="app" v-cloak></div>
  </body>
</html>
Host Operating System

Windows

Operating System Version

10

Architecture

amd64/x86_64

Package

Windows - portable (NOT recommended)

GPU Type

NVIDIA

GPU Model

GeForce RTX 3080 Ti

GPU Driver/Mesa Version

616.92

Capture Method

None

Apps

Log output
[2026-11-05 13:04:41.189]: Info: Sunshine version: 2026.1103.235308 commit: 2efa60fb85a54fb61495d12c6b22d405e89627d3
Online logs

No response

主要言語
C++
スター
43k
フォーク
2.4k
平均マージ
1日 6時間
マージ済み PR(30日)
106

環境構築

はじめの一歩

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

LizardByte/Sunshine のほかの issue

LizardByte/Sunshine の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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