web-ui not requesting relative path for reverse proxy purpose

Đang mở
#6,048 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html, nginx
Lĩnh vực
web-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
43k
Fork
2.4k
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
107

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LizardByte/Sunshine

Tất cả issue của LizardByte/Sunshine

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.