web-ui not requesting relative path for reverse proxy purpose

Abierto
#6,048 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
html, nginx
Área
web-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C++
Estrellas
43k
Forks
2.4k
Merge medio
1 d 6 h
PR fusionados (30 d)
106

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LizardByte/Sunshine

Todos los issues de LizardByte/Sunshine

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.